react-native-virtual-hockey-gz-referee
v1.0.2
Published
A ReactNative VirtualHockeyGzReferee Component for android and iOS
Downloads
11
Maintainers
Readme
react-native-virtual-hockey-gz-referee
Getting started
$ npm install react-native-virtual-hockey-gz-referee --save
Mostly automatic installation
$ react-native link react-native-virtual-hockey-gz-referee
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-virtual-hockey-gz-referee
and addRNVirtualHockeyGzReferee.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNVirtualHockeyGzReferee.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.RNVirtualHockeyGzRefereePackage;
to the imports at the top of the file - Add
new RNVirtualHockeyGzRefereePackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-virtual-hockey-gz-referee' project(':react-native-virtual-hockey-gz-referee').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-virtual-hockey-gz-referee/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-virtual-hockey-gz-referee')
Windows
- In Visual Studio add the
RNVirtualHockeyGzReferee.sln
innode_modules/react-native-virtual-hockey-gz-referee/windows/RNVirtualHockeyGzReferee.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Virtual.Hockey.Gz.Referee.RNVirtualHockeyGzReferee;
to the usings at the top of the file - Add
new RNVirtualHockeyGzRefereePackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNVirtualHockeyGzReferee from 'react-native-virtual-hockey-gz-referee';
// TODO: What to do with the module?
RNVirtualHockeyGzReferee;