React native beacon scanner and sender to Mesosfer for Android and iOS
$ npm install react-native-beacon-mesosfer --save
$ react-native link react-native-beacon-mesosfer
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-beacon-mesosfer
and add RNReactNativeBeaconMesosfer.xcodeproj
libRNReactNativeBeaconMesosfer.a
to your project’s Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNReactNativeBeaconMesosferPackage;
to the imports at the top of the filenew RNReactNativeBeaconMesosferPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-beacon-mesosfer'
project(':react-native-beacon-mesosfer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-beacon-mesosfer/android')
android/app/build.gradle
:
compile project(':react-native-beacon-mesosfer')
RNReactNativeBeaconMesosfer.sln
in node_modules/react-native-beacon-mesosfer/windows/RNReactNativeBeaconMesosfer.sln
folder to their solution, reference from their app.MainPage.cs
appusing React.Native.Beacon.Mesosfer.RNReactNativeBeaconMesosfer;
to the usings at the top of the filenew RNReactNativeBeaconMesosferPackage()
to the List<IReactPackage>
returned by the Packages
method
import RNReactNativeBeaconMesosfer from 'react-native-beacon-mesosfer';
// TODO: What to do with the module?
RNReactNativeBeaconMesosfer;