Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.
yarn setup
This will prebuild the project. Prebuild means it will create the native ios
and android
for you to get started.
Now that you have successfully run the app, let's modify it.
-
Open
App.tsx
in your text editor of choice and edit some lines. -
For Android: Press the R key twice or select "Reload" from the Developer Menu (Ctrl + M (on Window and Linux) or Cmd ⌘ + M (on macOS)) to see your changes!
For iOS: Hit Cmd ⌘ + R in your iOS Simulator to reload the app and see your changes!
Open ios/ExifyExample.xcworkspace
in Xcode and run the project. Browse to Pods -> Development -> Exify folder. Modify to your heart's content. You will need to rebuild the project to see your changes.
Open android
in Android Studio and run the project. Browse to android -> app -> src -> ... -> MainActivty.kt. Modify to your heart's content. You will need to rebuild the project to see your changes.
You've successfully run and modified your React Native App. 🥳
- If you want to add this new React Native code to an existing application, check out the Integration guide.
- If you're curious to learn more about React Native, check out the Introduction to React Native.
Try cleaning the project:
yarn clean
If you can't get this to work, see the Troubleshooting page.
To learn more about React Native, take a look at the following resources:
- React Native Website - learn more about React Native.
- Getting Started - an overview of React Native and how setup your environment.
- Learn the Basics - a guided tour of the React Native basics.
- Blog - read the latest official React Native Blog posts.
@facebook/react-native
- the Open Source; GitHub repository for React Native.