react-native-cross-share
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "react-native-cross-share", | ||
"description": "React Native Sharing Capabilities", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"repository": { | ||
@@ -13,4 +13,3 @@ "type": "git", | ||
"android", | ||
"ios", | ||
"windows" | ||
"ios" | ||
], | ||
@@ -17,0 +16,0 @@ "nativePackage": true, |
@@ -8,4 +8,4 @@ # react-native-cross-share | ||
1. `npm install rnpm --global` | ||
2. `npm install react-native-share --save` | ||
3. `rnpm link react-native-share` | ||
2. `npm install react-native-cross-share --save` | ||
3. `rnpm link react-native-cross-share` | ||
@@ -27,7 +27,9 @@ ### Manual install | ||
- Add `import cl.json.RNSharePackage;` to the imports at the top of the file | ||
3. Open up `android/app/src/main/java/[...]/MainApplication.java` | ||
- Add `import cl.json.RNSharePackage;` to the imports at the top of the file | ||
- Add `new RNSharePackage()` to the list returned by the `getPackages()` method | ||
3. Append the following lines to `android/settings.gradle`: | ||
4. Append the following lines to `android/settings.gradle`: | ||
``` | ||
include ':react-native-share' | ||
project(':react-native-share').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-share/android') | ||
include ':react-native-cross-share' | ||
project(':react-native-cross-share').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cross-share/android') | ||
``` | ||
@@ -37,3 +39,3 @@ 4. Insert the following lines inside the dependencies block in `android/app/build.gradle`: | ||
``` | ||
compile project(':react-native-share') | ||
compile project(':react-native-cross-share') | ||
``` | ||
@@ -62,3 +64,3 @@ | ||
} from 'react-native'; | ||
import Share from 'react-native-share'; | ||
import Share from 'react-native-cross-share'; | ||
@@ -65,0 +67,0 @@ class Example extends Component { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
215242
124