Salvo meu arquivo index.js e nao atualiza o ADV manager do Android Studio.
Tenho 2 arquivos: index.js e App.js. O nome do meu projeto é Fussa(Nao coloquei InstaluraMobile)
index.js:
/**
* @format
*/
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(App, () => App);
App.js:
type Props = {};
export default class App extends Component<Props> {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>Alura!</Text>
<Text style={styles.instructions}>Fussa!</Text>
<Text style={styles.instructions}>{instructions}</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});