I want to develop a react-native component and need to use it both for android and IOS. I read react-native integration-with-existing-apps but here for Android they mentioned to add existing android project to the react-native project. is there any other way ? Can we add react-native component inside existing android project ?
0
votes
1 Answers
1
votes
In the documentation, it states:
To ensure a smooth experience, create a new folder for your integrated React Native project, then copy your existing Android project to an
/android
subfolder.
Which has another meaning: it is not compulsory to create a new folder for your integrated RN project, you can even have your react native file outside your project file. In order to ensure the flow and ease, it is advisable you to put either android into react native project directory or react native into android directory (which is what you want).