Home > Enterprise >  React Native can not connect to Metro
React Native can not connect to Metro

Time:08-13

i am beginner at React Native.yesterday i wrote a Hello World code then i printed. it's worked.then i tried to update my code just like this:

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

function App()
{
  return (<View>
    <Text>Hello World</Text>
    <Text>Hello World2</Text>
    </View>)
}

export default App;

Now i have error like this:

Can not connect Metro

VSC error

CodePudding user response:

You have to start your project again. Run npx react-native start, than run npx react-native run-ios

  • Related