关于Dimensions的错误



  • var React = require('react');
    var {
    Dimensions,
    StyleSheet,
    Text,
    TouchableOpacity,
    View,
    Animated,
    } = React;

    var deviceWidth = Dimensions.get('window').width;

    ![alt text](0_1465895798310_Screenshot_20160614-171610.png image url)


登录后回复