$ npm install git+https://[email protected]/VadakkekaraApps/snapchat-login.git --save
$ react-native link react-native-snapchat-login
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-snapchat-login
and addRNSnapchatLogin.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNSnapchatLogin.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.jose2007kj.reactnative.RNSnapchatLoginPackage;
to the imports at the top of the file - Add
new RNSnapchatLoginPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-snapchat-login' project(':react-native-snapchat-login').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-snapchat-login/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-snapchat-login')
- In Visual Studio add the
RNSnapchatLogin.sln
innode_modules/react-native-snapchat-login/windows/RNSnapchatLogin.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Snapchat.Login.RNSnapchatLogin;
to the usings at the top of the file - Add
new RNSnapchatLoginPackage()
to theList<IReactPackage>
returned by thePackages
method
import RNSnapchatLogin from 'react-native-snapchat-login';
// TODO: What to do with the module?
RNSnapchatLogin;