This is a new React Native project, bootstrapped using @react-native-community/cli
.
Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.
First, you will need to start Metro, the JavaScript bundler that ships with React Native.
To start Metro, run the following command from the root of your React Native project:
# using npm
npm start
# OR using Yarn
yarn start
Let Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:
# using npm
npm run android
# OR using Yarn
yarn android
# using npm
npm run ios
# OR using Yarn
yarn ios
- Add your google-services.json to /android/app/ folder
- Edit index.js by adding your app code and sender ID from Firebase console: https://github.com/enginseer-dev/react_native_basic_sample/blob/main/index.js
You've successfully run and modified your React Native App to work with Pushwoosh!
Try sending a test notification via Puhswoosh control panel or using our API 🥳
If you can't get this to work, see the Troubleshooting page.