1.0.1 • Published 5 years ago

react-native-external-accessory v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

ReactNative External Accessory Framework for iOS

Search and configure WiFi Accessories from ReactNative.

Installation

Add react-native-external-accessory to your project.

npm install --save react-native-external-accessory

Link react-native-external-accessory.

react-native link react-native-external-accessory

Update your iOS projects entitlements to support Wireless Accessory Configuration.

<?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  <plist version="1.0">
  <dict>
    ...
    <key>com.apple.external-accessory.wireless-configuration</key>
    <true/>
    ...
  </dict>
  </plist>

Running test

The unit tests are run using the jest test framework. To run the tests do:

npm install && npm run test

TODOs

  • More tests!
  • Add NSPredicate support to ExternalAccessoryBrowser.startSearch
  • Add support for Bluetooth and wired external accessories.