react-native-spatialconnect

0.12.1 • Public • Published

react-native-spatialconnect

react-native-spatialconnect is Javascript library used to integrate SpatialConnect with your React Native applications.

Prerequisites

For iOS, you need to have Carthage and Xcode installed on your system.

Configuration & Installation

From the root directory of your React Native app, you can install by running:

npm install react-native-spatialconnect --save

Note: this may take a few minutes to download and compile all the dependencies.

iOS:

  • Open your React Native iOS project in Xcode.
  • Drag RNSpatialConnect.xcodeproj located in .node_modules/react-native-spatialconnect/ios to the Libraries folder of your project in Xcode.
  • In the General settings tab of your app under Linked Frameworks and Libraries, add libRNSpatialConnect.a.
  • In Build Settings/Search Paths/Framework search paths add path: $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS.
  • In Build Settings/Build Options/Always Embed Swift Standard Libraries set to Yes.
  • In Build Phases click on top left plus (+) button and add New Run Script Phase.
    • Shell command: /usr/local/bin/carthage copy-frameworks
    • Input Files:
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/SpatialConnect.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/ReactiveCocoa.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/wkb_ios.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/JWT.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/libgpkgios.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/MQTTFramework.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/proj4.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/ZipZap.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/CocoaLumberjack.framework
  • Minimal supported version of iOS is 8.0

Android:

  • Modify settings.gradle located in ./android folder.
    • Add the following:
      • include ':react-native-spatialconnect'
      • project(':react-native-spatialconnect').projectDir = new File(rootProject.projectDir,'../node_modules/react-native-spatialconnect/android')
  • Modify build.gradle located in ./android/app folder.
    • Add the following under the dependencies:
      • compile project(':react-native-spatialconnect')

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-spatialconnect

Weekly Downloads

1

Version

0.12.1

License

Apache-2.0

Last publish

Collaborators