joonhocho / react-native-linkedin-sdk

React Native Wrapper for Latest LinkedIn Mobile SDK for Sign-In / Auth and API Access.
MIT License
40 stars 16 forks source link

RNLinkedinSessionManager is undefined #8

Closed raineroviir closed 7 years ago

raineroviir commented 7 years ago

Cannot read property 'configure' of undefined TypeError: Cannot read property 'configure' of undefined at Object.configure (http://localhost:8081/index.ios.bundle?

Errors out at: ` var NativeModules = ReactNative.NativeModules; var RNLinkedInSessionManager = NativeModules.RNLinkedInSessionManager;

var LinkedInSDK = { configure: function configure(config) { return RNLinkedInSessionManager.configure(config); }, `

For some reason RNLinkedinSessionManager is undefined. Is this because I've Linked the project incorrectly? I added the RNLinkedInSessionManager folder from the /node_moduels/ to the Xcode project, under the project folder. I'm not sure if this is the correct location.

raineroviir commented 7 years ago

Here's a picture of my folder layout

raineroviir commented 7 years ago

apparently I had to restart xcode and the build is now working.