6.4.3-nh • Published 30 days ago

react-native-insider v6.4.3-nh

Weekly downloads
480
License
-
Repository
-
Last release
30 days ago

react-native-insider

Getting started

$ yarn add react-native-insider —-save

Automatic installation (Recommended)

$ react-native link react-native-insider

Manual installation (Optional)

Skip this step if you performed the automatic installation successfully.

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-insider and add RNInsider.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNInsider.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.useinsider.react.RNInsiderPackage; to the imports at the top of the file
  • Add new RNInsiderPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-insider'
    project(':react-native-insider').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-insider/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-insider')

Native Integration Steps (Required)

iOS

  1. From the left-side navigation of XCode, select your project. Add libsqlite3.0.tbd and libicucore.tbd to your project's Build PhasesLink Binary With Libraries

alt text

  1. In order to use push notification service from Apple, first you need to enable Push Notification. Select your project and navigate to TargetsCapabilities. Enable Push Notifications from the list. Then locate Background Modes and check Remote Notifications and Background Fetch.

alt text

Android

  1. Append the following lines to android/build.gradle (Project Level Gradle):
buildscript{
	dependencies{
		classpath 'com.google.gms:google-services:3.2.1'
	}
}

allprojects{
	repositories{ 
		maven { url 'https://mobile.useinsider.com'}
	}
}
  1. Append the following lines to android/app/build.gradle (Module Level Gradle):
//Replace the placeholder partnerName with your actual partner name.
android{
	defaultConfig{
		manifestPlaceholders = [ partner : 'partnerName']
	}
}

//Place the snippet between dependencies and copyDownloadbleDepsToLibs,
//which is nearly the very bottom of the file.
apply plugin: 'com.google.gms.google-services'
  1. Delete the following line from android/app/src/AndroidManifest.xml:
android:allowBackup="false"

Usage

Open up the component registered to the AppRegistery.

// Import RNInsider to access the SDK methods.
import RNInsider from 'react-native-insider';
// Call init function from the main component's componentDidMount.
componentDidMount(){
	RNInsider.init("partnerName", "senderID", pushCollapse);
}
"partnerName" => String - Your Partner Name

The next three variables are for Android integration.

"senderID" => String - Your Sender ID that you retrieved from Firebase console.
"pushCollapse => boolean - This enables or disables overwriting of Push Notifications in the Notification Drawer.
6.4.3-nh

30 days ago

6.4.3

30 days ago

6.4.2-nh

1 month ago

6.4.2

1 month ago

6.4.1-nh

2 months ago

6.4.1

2 months ago

6.4.0

2 months ago

6.4.0-nh

2 months ago

6.3.0

6 months ago

6.2.0

7 months ago

6.2.0-nh

7 months ago

6.3.0-nh

6 months ago

6.1.0

9 months ago

5.5.4-nh

11 months ago

6.0.1-nh

9 months ago

6.1.0-nh

9 months ago

6.0.0-nh

10 months ago

6.0.1

9 months ago

6.0.0

10 months ago

5.5.4

11 months ago

5.5.1

1 year ago

5.5.1-nh

1 year ago

5.5.2-nh

1 year ago

5.5.3-nh

1 year ago

5.5.3

1 year ago

5.5.2

1 year ago

5.5.0

1 year ago

5.4.1-nh

1 year ago

5.5.0-nh

1 year ago

5.4.2-nh

1 year ago

5.4.2

1 year ago

5.4.1

1 year ago

5.4.0

2 years ago

5.4.0-nh

2 years ago

5.3.0

2 years ago

5.1.0

2 years ago

5.2.0-nh

2 years ago

5.1.0-nh

2 years ago

5.2.2

2 years ago

5.2.1

2 years ago

5.2.0

2 years ago

0.0.6-test

2 years ago

5.2.2-nh

2 years ago

5.3.0-nh

2 years ago

5.2.1-nh

2 years ago

5.0.2

2 years ago

5.0.2-nh

2 years ago

5.0.1

2 years ago

5.0.1-nh

2 years ago

5.0.0-nh

2 years ago

5.0.0

2 years ago

4.4.1-nh

2 years ago

4.4.1

2 years ago

4.3.1-nh

3 years ago

4.4.0-nh

3 years ago

4.4.0

3 years ago

4.3.1

3 years ago

0.0.7-test

3 years ago

4.3.0

3 years ago

4.2.1

3 years ago

4.2.0-nh

3 years ago

4.2.0

3 years ago

4.1.1-nh

3 years ago

4.1.1

3 years ago

2.4.2

3 years ago

4.1.0-nh

3 years ago

4.1.0

3 years ago

4.0.0

4 years ago

3.2.0

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.5.2

4 years ago

2.5.1

4 years ago

2.5.0

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.6

5 years ago

1.3.0

5 years ago

2.0.5

5 years ago

1.2.1

5 years ago

2.0.4

6 years ago

2.0.3

6 years ago

1.2.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago