react-native-contacts
Advanced tools
Comparing version 0.5.2 to 0.6.0
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.5.2", | ||
"version": "0.6.0", | ||
"description": "React Native Contacts (android & ios)", | ||
@@ -10,0 +10,0 @@ "nativePackage": true, |
@@ -48,5 +48,3 @@ # React Native Contacts | ||
recordID: 1, | ||
familyName: "Jung", | ||
givenName: "Carl", | ||
middleName: "", | ||
company: "", | ||
emailAddresses: [{ | ||
@@ -56,2 +54,6 @@ label: "work", | ||
}], | ||
familyName: "Jung", | ||
givenName: "Carl", | ||
jobTitle: "", | ||
middleName: "", | ||
phoneNumbers: [{ | ||
@@ -71,4 +73,2 @@ label: "mobile", | ||
var newPerson = { | ||
familyName: "Nietzsche", | ||
givenName: "Friedrich", | ||
emailAddresses: [{ | ||
@@ -78,2 +78,4 @@ label: "work", | ||
}], | ||
familyName: "Nietzsche", | ||
givenName: "Friedrich", | ||
} | ||
@@ -146,3 +148,3 @@ | ||
* register module (in android/app/src/main/java/[your-app-namespace]/MainActivity.java) | ||
* register module (in android/app/src/main/java/com/[your-app-name]/MainApplication.java) | ||
```java | ||
@@ -153,9 +155,5 @@ ... | ||
public class MainActivity extends ReactActivity { | ||
... | ||
/** | ||
* A list of packages used by the app. If the app uses additional views | ||
* or modules besides the default ones, add more packages here. | ||
*/ | ||
public class MainApplication extends Application implements ReactApplication { | ||
... | ||
@Override | ||
@@ -172,3 +170,3 @@ protected List<ReactPackage> getPackages() { | ||
``` | ||
If you are using an older version of MainActivity (i.e. `public class MainActivity extends Activity`) please see the [old instructions](https://github.com/rt2zz/react-native-contacts/tree/1ce4b876a416bc2ca3c53e7d7e0296f7fcb7ce40#android) | ||
If you are using an older version of RN (i.e. `MainApplication.java` does not contain this method (or doesn't exist) and MainActivity.java starts with `public class MainActivity extends Activity`) please see the [old instructions](https://github.com/rt2zz/react-native-contacts/tree/1ce4b876a416bc2ca3c53e7d7e0296f7fcb7ce40#android) | ||
@@ -175,0 +173,0 @@ * add Contacts permission (in android/app/src/main/AndroidManifest.xml) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
58167
211