react-native-pusher-beams
v0.0.2
Published
React Native bridge for Pusher Beams
Readme
DO NOT USE THIS PACKAGE
react-native-pusher-beams
Getting started
$ npm install react-native-pusher-beams --save
Mostly automatic installation
$ react-native link react-native-pusher-beams
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-pusher-beamsand addRNPusherBeams.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNPusherBeams.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.RNPusherBeamsPackage;to the imports at the top of the file - Add
new RNPusherBeamsPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-pusher-beams' project(':react-native-pusher-beams').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pusher-beams/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-pusher-beams')
Usage
import RNPusherBeams from 'react-native-pusher-beams';
// TODO: What to do with the module?
RNPusherBeams;