Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 142188

Cannot Read Property 'get' of undefined | React Native

$
0
0

After updating to React Native 0.58.6 it seems as though my node modules folder isn't able to import or require the React Native Library.

The error i'm encountering is coming from the the React-Native-elements library

import { Dimensions, Platform, StatusBar } from 'react-native';
const { height: W_HEIGHT, width: W_WIDTH } = Dimensions.get('window');

com.facebook.react.common.JavascriptException: Cannot read property 'get' of undefined

Cannot read property 'get' of undefined

Error Message

loadApplicationScript WebsocketJavaScriptExecutor.java:167 run NativeRunnable.java handleCallback Handler.java:883 dispatchMessage Handler.java:100 dispatchMessage MessageQueueThreadHandler.java:29 loop Looper.java:214 run MessageQueueThreadImpl.java:192 run Thread.java:919


Viewing all articles
Browse latest Browse all 142188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>