title: Snack.expo.io undefined is not an object (evaluating 'e.view._component.measureInWindow')
body: <p>I am programming an app on <a href="http://snack.expo.io" rel="nofollow noreferrer">snack.expo.io</a> website. I am trying to run the app on Expo Go app on my phone, but getting an error which says:</p>
  <pre><code>undefined is not an object (evaluating 'e.view._component.measureInWindow')
  </code></pre>
  <p>The error message appeared at my phone's Expo Go app when I try to run the app. I not sure how to fix the error at all, as I am new to react native, please help me.</p>
  <p>My application code at snack.expo.io are:</p>
  <pre><code>import * as React from 'react';
  import {
    Text,
    View,
    WebView,
    StyleSheet,
    Button,
    TouchableOpacity,
    TextInput,
    Picker,
    SafeAreaView,
    Linking,
    SectionList,
  } from 'react-native';
  import { createStackNavigator } from 'react-navigation';
  import Constants from 'expo-constants';
  
  import { NavigationContainer } from '@react-navigation/native';
  import { createNativeStackNavigator } from '@react-navigation/native-stack';
  
  // You can import from local files
  import AssetExample from './components/AssetExample';
  
  // or any pure javascript modules available in npm
  import { Card } from 'react-native-paper';
  
  //Home page
  class HomeScreen extends React.Component {
    render(){
    return (
      &lt;View style={styles.container}&gt;
  
        &lt;View style={{ flexDirection: 'row' }}&gt;
  
          &lt;TouchableOpacity
            onPress={() =&gt; this.props.navigation.navigate('Page2')}
            style={styles.startButton}&gt;
            &lt;Text style={{ color: 'grey' }}&gt;Go to page 2&lt;/Text&gt;
          &lt;/TouchableOpacity&gt;
  
        &lt;/View&gt;
        
      &lt;/View&gt;
    );
    }
  }
  
  
  class P2 extends React.Component {
  
    render(){
    return (
    
      &lt;SafeAreaView&gt;
        &lt;Text&gt;page 2 is here&lt;/Text&gt;
      &lt;/SafeAreaView&gt;
    );
    }
  }
  
  const Stack = createNativeStackNavigator();
  
  const RootStack = createStackNavigator(
    {
      Home: HomeScreen,
      Page2: P2,
    },
    {
      initialRouteName: 'Home',
    }
  );
  
  const styles = StyleSheet.create({
    container: {
      flex: 1,
      // justifyContent: 'center',
      // alignItems: 'center',
      paddingTop: Constants.statusBarHeight,
      backgroundColor: '#ecf0f1',
      padding: 8,
    },
    startButton: {
      width: 110,
      height: 110,
      backgroundColor: 'white',
      justifyContent: 'center',
      alignItems: 'center',
      margin: 10,
      borderRadius: 5,
    },
  });
  
  export default class App extends React.Component {
    render() {
      return &lt;RootStack /&gt;;
    }
  }
  </code></pre>
  <p>My package.json at snack.expo.io have the following codes:</p>
  <pre><code>{
    &quot;dependencies&quot;: {
      &quot;expo-constants&quot;: &quot;~12.1.3&quot;,
      &quot;react-navigation&quot;: &quot;2.0.0-beta.6&quot;,
      &quot;@expo/vector-icons&quot;: &quot;^12.0.0&quot;,
      &quot;react-native-paper&quot;: &quot;4.9.2&quot;,
      &quot;react-native-screens&quot;: &quot;~3.8.0&quot;,
      &quot;react-native-tab-view&quot;: &quot;^3.0.0&quot;,
      &quot;@react-navigation/stack&quot;: &quot;6.0.6&quot;,
      &quot;react-native-pager-view&quot;: &quot;5.4.6&quot;,
      &quot;react-native-reanimated&quot;: &quot;~2.2.0&quot;,
      &quot;@react-navigation/drawer&quot;: &quot;6.1.3&quot;,
      &quot;@react-navigation/native&quot;: &quot;6.0.2&quot;,
      &quot;@react-navigation/elements&quot;: &quot;1.0.4&quot;,
      &quot;react-native-gesture-handler&quot;: &quot;~1.10.2&quot;,
      &quot;@react-navigation/bottom-tabs&quot;: &quot;6.0.4&quot;,
      &quot;@react-navigation/native-stack&quot;: &quot;6.0.5&quot;,
      &quot;react-native-safe-area-context&quot;: &quot;3.3.2&quot;,
      &quot;@react-native-community/masked-view&quot;: &quot;*&quot;,
      &quot;@react-navigation/material-top-tabs&quot;: &quot;6.0.2&quot;,
      &quot;@react-navigation/material-bottom-tabs&quot;: &quot;6.0.4&quot;
    }
  }
  </code></pre>