Skip to content

tvOS support / opt-out of iOS autolinking on TV builds #722

Description

@slvvn

Summary

We use @lodev09/react-native-true-sheet in an Expo app that ships to iOS and tvOS via react-native-tvos.

Although bottom sheet is not relevant on tvOS, for those builds (EXPO_TV=1) the library's iOS native module is still autolinked.

Environment

  • @lodev09/react-native-true-sheet: ^3.11.1
  • react-native: react-native-tvos@0.86

Problem

Trying to exclude it in react-native.config.js like this doesn't work here, because for tvOS, Expo/RN autolinking runs with --platform ios, and I don't want to exclude it for iOS:

dependencies: {
  '@lodev09/react-native-true-sheet': {
    platforms: {
      ios: null
    },
  },
},

Request

Would you consider a proper way to let tvOS just be ignored from autolinking, or some other way to avoid issues on tvOS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions