React Native

React Native and OneSignal Part 1 (iOS)

Using One Signal api for remote notifications is very painless and comfortable for React Native. There are very simple steps for installation and configuration. Let's begin; Create a react native project $ react-native init projeOnesignal Install One Signal package and link to the project $ npm install --save react-native-onesignal $ react-native link react-native-onesignal XCode Setup Sign up for a One Signal account if you don't have one. Open your project in XCode and go to Capabilities Tab, then set Push...

Continue reading

React Native

Problem: Blank screen after generating signed apk

If your react native android app shows a blank screen on simulator or device, probably you do not have a react.gradle file under android/app. You have to bundle the javascript package and drawable resources. Run this code to solve the problem; mkdir android/app/src/main/assets react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res react-native run-android

Continue reading