-
Notifications
You must be signed in to change notification settings - Fork 935
Closed
Labels
backlogThis issue or pull request already existsThis issue or pull request already existscommand: linkwontfixThis will not be worked onThis will not be worked on
Description
My suggestion/improvement for react-native-link command is to add an option to specify where new pod line should be added.
Why will you need it?
Let's say you have a project with multiple targets and multiple pods divided in some section like below:
def react_native_pods()
pod 'React', path: '../node_modules/react-native', subspecs: [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'CxxBridge',
'DevSupport',
]
pod 'yoga', path: '../node_modules/react-native/ReactCommon/yoga/yoga.podspec'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
end
def customized_pods()
pod 'react-native-maps', path: '../node_modules/react-native-maps'
end
target 'myFirstTarget' do
react_native_pods()
end
target 'secondTarget' do
react_native_pods()
customized_pods()
end
Now if you are going to link new library eg. react-native-screens it would be awesome to have an option to indicate to which def section new pod line should be added.
Metadata
Metadata
Assignees
Labels
backlogThis issue or pull request already existsThis issue or pull request already existscommand: linkwontfixThis will not be worked onThis will not be worked on