/react-native-the-native-parts-android

Example utilization of React Native's native parts on the Android platform.

Primary LanguageJavaMIT LicenseMIT

React Native: The Native Parts (Android Edition)

A demo app that showcases how to:

  • Embed React Native into an existing app
  • Implement a custom native component
  • Invoke a native method from JavaScript
  • Trigger a JavaScript method from native

Screenshot

How to run it

Clone the repository

git clone https://github.com/bevkoski/react-native-the-native-parts-android.git

cd react-native-the-native-parts-android

Install dependencies

yarn or npm install

Start the React Native bundler

yarn start or npm start

Open the project in Android Studio

  1. Start Android Studio
  2. Choose "Open an existing Android Studio project"
  3. Select the /react-native-the-native-parts-android/android folder

Run the app

Once Android Studio loads, click the green "Run" button.

How it works

Check out this Medium article.