react-native-launch-arguments
react-native-launch-arguments copied to clipboard
iOS: Cannot read property 'value' of null
I am using react-native-launch-arguments 3.1.4 together with react-native 0.69.3. I trying to pass data from detox to my app for testing purposes but it seems like the react-native-launch-arguments package is not installed properly. Here is the full error:
"TypeError: Cannot read property 'LaunchArguments' of undefined\n\nThis error is located at:\n in App (at myApp/index.js:36)\n in Provider (at Providers.tsx:43)\n in ThemeProvider (at Providers.tsx:54)\n in StyledComponentsThemeProvider (at Providers.tsx:42)\n in HCThemeProvider (at Providers.tsx:41)\n in QueryClientProvider (at Providers.tsx:40)\n in RCTView (at View.js:32)\n in View (at GestureHandlerRootView.tsx:17)\n in GestureHandlerRootView (at Providers.tsx:39)\n in HCDebugProvider (at Providers.tsx:38)\n in Providers (at myApp/index.js:35)\n in AppWithProviders (at myApp/index.js:26)\n in HeadlessCheck (at renderApplication.js:50)\n in RCTView (at View.js:32)\n in View (at AppContainer.js:92)\n in RCTView (at View.js:32)\n in View (at AppContainer.js:119)\n in AppContainer (at renderApplication.js:43)\n in DeliveryTrackingApp(RootComponent) (at renderApplication.js:60), js engine: hermes"
Thanks for help

Could you try please the previous version?
I just realized that it works fine when i do xcrun simctl launch booted my.package.id -isDetox true. But using device.launchApp from detox it does not
Heya mate, after installing this module you need to re-build your Detox binary (detox build <etc>), otherwise you're still reusing detox binary that didnt have the native module installed. :)
Thanks @rodperottoni ! Would you like to open a PR to include this in the docs?