React native is stuck at old version app

前端 未结 8 1390
慢半拍i
慢半拍i 2020-12-28 21:50

When I run react-native run-android it only installs the old version of the app in simulator and changes are not shown.

Any suggestion is appreciated.

8条回答
  •  死守一世寂寞
    2020-12-28 22:18

    In my case a colleague imported components from React Native before he imported React. The order of your imports is important.

    That's how it should look like:

    import React from "react";
    import { View, Text } from "react-native";
    

提交回复
热议问题