README
react-native-arie-toast-module
Getting started
$ npm install react-native-arie-toast-module --save
Mostly automatic installation
$ react-native link react-native-arie-toast-module
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-arie-toast-module
and addRNArieToastModule.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNArieToastModule.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.RNArieToastModulePackage;
to the imports at the top of the file - Add
new RNArieToastModulePackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-arie-toast-module' project(':react-native-arie-toast-module').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-arie-toast-module/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-arie-toast-module')
Windows
- In Visual Studio add the
RNArieToastModule.sln
innode_modules/react-native-arie-toast-module/windows/RNArieToastModule.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Arie.Toast.Module.RNArieToastModule;
to the usings at the top of the file - Add
new RNArieToastModulePackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNArieToastModule from 'react-native-arie-toast-module';
// TODO: What to do with the module?
RNArieToastModule;