- I have created a sample react native project
npx react-native init MyNewProject
- I added pod dependency in ios pod file
- I added use_modular_headers!
- Getting error as Redefinition of module ‘ReactCommon’ error in xcode project
- in vs code getting below error
enter image description here
target 'MyNewProject' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
pod 'some pod'
target 'MyNewProjectTests' do
inherit! :complete
# Pods for testing
end
I tried pod uninstall and install
New contributor
Ram Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.