Search code examples
androidiosxcodereact-nativexcodeproj

How to continue developing with a React Native Project with xCode?


I have complete my first little application with React Native.

Now I want to change some styles or the splash screen on their native platform, where is the generated code for these platforms? I checked the ios and android folder, but I just can't find the place of code.

For example, in xCode, I think most of code is stay in main.jsbundle file. but I don't know how to open it. Moreover, is it possible to continue with Swift language?


Solution

  • where is the generated code for these platforms?

    This is the point, React Native will not compile to ObjectiveC or Java. ReactNative is a set of Native Components which are controlled by JS over the NativeBridge.

    Your whole application Logic lives in JS and talks to the native UI layer via the bridge.

    Some links on this
    https://facebook.github.io/react-native/docs/communication-ios.html

    How to write your own native components and use control them with js
    https://facebook.github.io/react-native/docs/native-modules-ios.html