-
Notifications
You must be signed in to change notification settings - Fork 930
Description
Describe the Feature
We use the same codebase for different apps in appstore, so we have different targets in pod file. For some of the apps we need to remove specific dependencies (for instance, we can't use firebase admob library in target that is aiming for kids due to appstore policy).
Currently in react-native.config.js I can disable autolinking only for specific platfrom, but it would be good to be able to skip dependency for specific pod targets as well
Possible Implementations
I can imagine that it could be a specific property in react-native.config.jsin dependency configuration where I can putt targets that should be excluded from autolinking
module.exports = {
assets: ['res/fonts'],
dependencies: {
'react-native-code-push': {
platforms: {
ios: {
excludeFor: ['Target1'],
},
android: null,
web: null,
}
}
}
}
I think in ../node_modules/@react-native-community/cli-platform-ios/native_modules it could be possible to get this property for dependency and skip installation if current target is listed