react-native-welcome-screen
v0.0.2
Published
## Getting started
Downloads
7
Readme
react-native-welcome-screen
Getting started
$ npm install react-native-welcome-screen --save
Mostly automatic installation
$ react-native link react-native-welcome-screen
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-welcome-screen
and addRNWelcomeScreen.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNWelcomeScreen.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNWelcomeScreenPackage;
to the imports at the top of the file - Add
new RNWelcomeScreenPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-welcome-screen' project(':react-native-welcome-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-welcome-screen/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-welcome-screen')
Windows
- In Visual Studio add the
RNWelcomeScreen.sln
innode_modules/react-native-welcome-screen/windows/RNWelcomeScreen.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Com.Reactlibrary.RNWelcomeScreen;
to the usings at the top of the file - Add
new RNWelcomeScreenPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNWelcomeScreen from 'react-native-welcome-screen';
// TODO: What to do with the module?
RNWelcomeScreen;