launchdarkly / react-native-client-sdk

LaunchDarkly Client-side SDK for React Native
Other
47 stars 32 forks source link

null is not an object (evaluating 'LaunchdarklyReactNativeClient.FLAG_PREFIX') #178

Closed RubenAllaverdyan closed 1 year ago

RubenAllaverdyan commented 1 year ago

Describe the bug I get 'null is not an object (evaluating 'LaunchdarklyReactNativeClient.FLAG_PREFIX')' error when trying to create LDClient instance on React Native Expo bare workflow.

To reproduce import LDClient from 'launchdarkly-react-native-client-sdk'; const ldInstance = new LDClient();

Expected behavior ldInstance must be created

Logs null is not an object (evaluating 'LaunchdarklyReactNativeClient.FLAG_PREFIX')

SDK version 6.3.0

Language version, developer tools React Native Expo bare workflow "expo": "~47.0.12", "react": "18.1.0", "react-native": "0.70.5"

OS/platform Ubuntu, Android