I am trying to build my first React Native app. I am using the default App.js code, the only difference is the output text that I changed from Open up App.js
to Hello world!
. I have an issue with the code changing itself upon save.
This is how the default function looks before I press Ctrl+S to save the file:
export default function App() {
return (
<View style={styles.container}>
<Text>Hello world!</Text>
</View>
);
}
And this is how the default function looks after the save:
export default function App() {
return ( <
View style = { styles.container } >
<
Text > Hello world! < /Text> <
/View>
);
}
Is it a bug or am I doing something wrong?