0.0.3 • Published 8 years ago

react-native-twitter-share v0.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

react-native-twitter-share

Android

  1. npm install react-native-twitter-share --save
  2. Open up `android/app/src/main/java/.../MainActivity.java
  • Add import rm.share.RNTwitterSharePackage; to the imports at the top of the file
  • Add new RNTwitterSharePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-twitter-share'
    project(':react-native-twitter-share').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-twitter-share/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:

    ```
    compile project(':react-native-twitter-share')
    ```