1.0.377 • Published 5 years ago

react-native-pet-ble v1.0.377

Weekly downloads
343
License
-
Repository
-
Last release
5 years ago

react-native-pet-ble

Getting started

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

Mostly automatic installation

$ react-native link react-native-pet-ble

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-pet-ble and add RNPetBle.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNPetBle.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.petBle.RNPetBlePackage; to the imports at the top of the file
  • Add new RNPetBlePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-pet-ble'
    project(':react-native-pet-ble').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-pet-ble/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-pet-ble')

Windows

Read it! :D

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

Usage

import RNPetBle from 'react-native-pet-ble';

// TODO: What to do with the module?
RNPetBle;
1.0.377

5 years ago

1.0.376

5 years ago

1.0.375

5 years ago

1.0.374

5 years ago

1.0.373

5 years ago

1.0.372

5 years ago

1.0.371

5 years ago

1.0.370

5 years ago

1.0.369

6 years ago

1.0.368

6 years ago

1.0.367

6 years ago

1.0.366

6 years ago

1.0.356

6 years ago

1.0.355

6 years ago

1.0.354

6 years ago

1.0.353

6 years ago

1.0.352

6 years ago

1.0.351

6 years ago

1.0.349

6 years ago

1.0.348

6 years ago

1.0.350

6 years ago

1.0.346

6 years ago

1.0.345

6 years ago

1.0.344

6 years ago

1.0.343

6 years ago

1.0.342

6 years ago

1.0.341

6 years ago

1.0.329

6 years ago

1.0.328

6 years ago

1.0.337

6 years ago

1.0.336

6 years ago

1.0.335

6 years ago

1.0.327

6 years ago

1.0.326

6 years ago

1.0.325

6 years ago

1.0.324

6 years ago

1.0.323

6 years ago

1.0.322

6 years ago

1.0.321

6 years ago

1.0.320

6 years ago

1.0.319

6 years ago

1.0.318

6 years ago

1.0.317

6 years ago

1.0.316

6 years ago

1.0.315

6 years ago

1.0.314

6 years ago

1.0.313

6 years ago

1.0.312

6 years ago

1.0.311

6 years ago

1.0.310

6 years ago

1.0.309

6 years ago

1.0.308

6 years ago

1.0.307

6 years ago

1.0.306

6 years ago

1.0.305

6 years ago

1.0.304

6 years ago

1.0.303

6 years ago

1.0.302

6 years ago

1.0.301

6 years ago

1.0.300

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.10

6 years ago

1.0.0

6 years ago