react-native-mechanical-exhibition-competition
v1.0.0
Published
A ReactNative MechanicalExhibitionCompetition Component for android and iOS
Downloads
3
Maintainers
Readme
react-native-mechanical-exhibition-competition
Getting started
$ npm install react-native-mechanical-exhibition-competition --save
Mostly automatic installation
$ react-native link react-native-mechanical-exhibition-competition
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-mechanical-exhibition-competition
and addRNMechanicalExhibitionCompetition.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNMechanicalExhibitionCompetition.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.RNMechanicalExhibitionCompetitionPackage;
to the imports at the top of the file - Add
new RNMechanicalExhibitionCompetitionPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-mechanical-exhibition-competition' project(':react-native-mechanical-exhibition-competition').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mechanical-exhibition-competition/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-mechanical-exhibition-competition')
Windows
- In Visual Studio add the
RNMechanicalExhibitionCompetition.sln
innode_modules/react-native-mechanical-exhibition-competition/windows/RNMechanicalExhibitionCompetition.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Mechanical.Exhibition.Competition.RNMechanicalExhibitionCompetition;
to the usings at the top of the file - Add
new RNMechanicalExhibitionCompetitionPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNMechanicalExhibitionCompetition from 'react-native-mechanical-exhibition-competition';
// TODO: What to do with the module?
RNMechanicalExhibitionCompetition;