The development server returned response error code: 500 in react native

前端 未结 16 1226
夕颜
夕颜 2021-02-05 01:29

I am using react-native framework for developing my android app. I want to use react-native-material-design library for making Toolbar wit

16条回答
  •  遥遥无期
    2021-02-05 02:00

    One of the reasons why I was having this error was because I imported 'react-native' library twice.

    import { View, Text, ActivityIndicator } from "react-native";
    import { View, Text, ActivityIndicator, TouchableOpacity, StyleSheet } from "react-native";
    

    I don't know If this can really cause this problem but removing the redundant line of import solved this issue for me.

提交回复
热议问题