You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System:
OS: macOS 12.1CPU: (8) arm64 Apple M1Memory: 3.15 GB / 16.00 GBShell: 5.8 - /bin/zshBinaries:
Node: 16.11.0 - ~/.config/noot/using/nodeYarn: 1.22.17 - ~/.config/noot/using/yarnnpm: 8.5.2 - /opt/homebrew/bin/npmWatchman: Not FoundManagers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/podSDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5Android SDK:
API Levels: 29, 30, 31, 32Build Tools: 28.0.3, 29.0.2, 30.0.2, 32.0.0, 32.1.0System Images: android-32 | Google APIs ARM 64 v8aAndroid NDK: Not FoundIDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8193401Xcode: 13.3/13E113 - /usr/bin/xcodebuildLanguages:
Java: 1.8.0_292 - /usr/bin/javacnpmPackages:
@react-native-community/cli: Not Foundreact: 17.0.2 => 17.0.2react-native: 0.66.4 => 0.66.4react-native-macos: Not FoundnpmGlobalPackages:
*react-native*: Not Found
Description
I control a library with some native code using turbo modules. I fixed auto linking for iOS in this library but I did not get it working for Android. I would like to disable Autolinking for android only and keep iOS enabled. I checked the docs and it says I have to add this to my library:
// react-native.config.jsmodule.exports={dependency: {platforms: {android: null,// disable Android platform, other platforms will still autolink if provided},},};
And I believe that here schema.ts the schema does not allow for null. Which is incompatible then with the example. Keeping it like android: {} will result in it being filled with the default values again. Also, adding all the default values with an empty string also results in an invalid configuration.
react-native config
# or
react-native config | jq ".dependencies"
And it should show that the dependencies object is empty.
I am not an expert with Autolinking and the whole process around it. Maybe I interpreted something wrong and please correct me if I made a simple mistake somewhere.
There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.
Environment
Description
I control a library with some native code using turbo modules. I fixed auto linking for iOS in this library but I did not get it working for Android. I would like to disable Autolinking for android only and keep iOS enabled. I checked the docs and it says I have to add this to my library:
And I believe that here schema.ts the schema does not allow for
null
. Which is incompatible then with the example. Keeping it likeandroid: {}
will result in it being filled with the default values again. Also, adding all the default values with an empty string also results in an invalid configuration.Reproducible Demo
And it should show that the
dependencies
object is empty.I am not an expert with Autolinking and the whole process around it. Maybe I interpreted something wrong and please correct me if I made a simple mistake somewhere.
possibly related PR: #1297
The text was updated successfully, but these errors were encountered: