react-native-layerkit
react-native-layerkit copied to clipboard
Layer.connect is not a function
Hi,
Trying to get it work, but getting Layer.connect is not a function.
following the manual added pod etc...
then:
const CONFIG = require('./config') ;
const Layer = require('react-native-layerkit');
Layer.connect(
CONFIG.LAYER.APP_ID,
(error, success) => {
if (error) {
console.log('login error',error);
//go to main screen
}
else {
console.log('connect success',success);
//handle error
}
}
)
what is wrong?
Have you properly linked the React Native LayerKit project in XCode?
i think so. did everything as said in the manual.
rn is v0.27.2
I have the same problem, any updates?
_reactNativeLayerkit2.default.connect is not a function
Fix with
import { RNLayerKit } from 'react-native-layerkit';