react-native-mapintent
A React Native intent for Android Facebook App.
Installation
npm install --save react-native-fbintent
Add it to your android project
- In
android/setting.gradle
...include ':RNFbIntent', ':app'project(':RNFbIntent').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbintent')
- In
android/app/build.gradle
...dependencies { ... compile project(':RNFbIntent')}
- register module (in MainActivity.java)
// <--- import
Example
FbIntent.open(facebook_page_id)
- facebook_page_id: (string) facebook page id, use http://findmyfbid.com/ to find the id of a page. If user does not install facebook app it will open facebook page in the browser.
Example:
var FbIntent = ; FbIntent;
License
MIT