react-native-external-accessory

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i react-native-external-accessory

Weekly Downloads

10

Version

1.0.1

License

MIT

Unpacked Size

395 MB

Total Files

5174

Last publish

Collaborators

  • dbolcsfoldi