2.0.1 • Published 3 years ago

react-native-davjdavj-health_ble-library1 v2.0.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

react-native-native-ble-library1

Getting started

$ npm install react-native-native-ble-library1 --save

Mostly automatic installation

$ react-native link react-native-native-ble-library1

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-native-ble-library1 and add RNNativeBleLibrary1.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNNativeBleLibrary1.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNNativeBleLibrary1Package; to the imports at the top of the file
  • Add new RNNativeBleLibrary1Package() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-native-ble-library1'
    project(':react-native-native-ble-library1').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-native-ble-library1/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-native-ble-library1')

Windows

Read it! :D

  1. In Visual Studio add the RNNativeBleLibrary1.sln in node_modules/react-native-native-ble-library1/windows/RNNativeBleLibrary1.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using Native.Ble.Library1.RNNativeBleLibrary1; to the usings at the top of the file
  • Add new RNNativeBleLibrary1Package() to the List<IReactPackage> returned by the Packages method

Usage

import RNNativeBleLibrary1 from 'react-native-native-ble-library1';

// TODO: What to do with the module?
RNNativeBleLibrary1;
2.0.1

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago