1.2.3 • Published 5 years ago
react-native-unliche-react-library v1.2.3
react-native-unliche-react-library
Getting started
$ npm install react-native-unliche-react-library --save
Mostly automatic installation
$ react-native link react-native-unliche-react-library
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-unliche-react-library
and addRNUnlicheReactLibrary.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNUnlicheReactLibrary.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.RNUnlicheReactLibraryPackage;
to the imports at the top of the file - Add
new RNUnlicheReactLibraryPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-unliche-react-library' project(':react-native-unliche-react-library').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-unliche-react-library/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-unliche-react-library')
Windows
- In Visual Studio add the
RNUnlicheReactLibrary.sln
innode_modules/react-native-unliche-react-library/windows/RNUnlicheReactLibrary.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Unliche.React.Library.RNUnlicheReactLibrary;
to the usings at the top of the file - Add
new RNUnlicheReactLibraryPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNUnlicheReactLibrary from 'react-native-unliche-react-library';
// TODO: What to do with the module?
RNUnlicheReactLibrary;
1.2.3
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.9.9
5 years ago
1.9.8
5 years ago
1.9.7
5 years ago
1.9.6
5 years ago
1.9.5
5 years ago
1.9.4
5 years ago
1.9.3
5 years ago
1.9.2
5 years ago
1.9.1
5 years ago
1.9.0
5 years ago
1.8.0
5 years ago
1.7.0
5 years ago
1.6.0
5 years ago
1.5.0
5 years ago
1.4.0
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.0
5 years ago