1.1.0 • Published 4 years ago
@premind/react-native-premind-ios v1.1.0
react-native-premind-sdk-ios
Getting started
$ npm install react-native-premind-sdk-ios
Mostly automatic installation
$ react-native link react-native-premind-sdk-ios
Installation via Coapods (recommended for React-Native 0.60.X)
- Add these lines to the
Podfile
pod 'PremindSDK', :path => '../../sdk'
pod 'RNPremindSdk', :path => '../../react-native-premind-sdk-ios/ios'- Run
pod installto install the libraries
Note: Look at the Podfile of the FakeApp for example
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-premind-sdk-iosand addRNPremindSdk.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNPremindSdk.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Usage
import { PremindManager, PremindEventEmitter } from 'react-native-premind-sdk-ios';Note: If the module is not loaded when running, copy the react-native-premind-sdk-ios to the node_modules folder.
Issues
Error: Undefined symbol: associated type descriptor for FloatLiteralType https://blog.cpming.top/p/react-native-0-62-undefined-symbol
Add these in the Build Settings of Project and Target
Dead Code Striping = YES
Don't Dead Strip Inits and Terms = YES
Enable Bitcode = NO- Missing Fonts Removing font files in the Resources folder within XCode