React Native unexpected token, expected ";"
Opened this issue · 0 comments
Help, this is my code, the error says in line 67:9 there's a mistake, and tells me that unexpected token sign, i don't know what's wrong
`_/**
- Sample React Native App
- https://github.com/facebook/react-native
- @Format
- @flow strict-local
*/
import React, { Component } from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
Alert,
Button,
TextInput,
TouchableHighlight,
} from 'react-native';
import {
Header,
LearnMoreLinks,
Colors,
DebugInstructions,
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';
const App: () => React$Node = () => {
return (
<>
{global.HermesInternal == null ? null : (
Engine: Hermes
)}
Step One
Edit App.js to change this
screen and then come back to see your edits.
LogIn
</>
);
};
67 onLogin(){
console.log('Has pulsado el boton login/')
}
const styles = StyleSheet.create({
scrollView: {
backgroundColor: Colors.darker,
},
engine: {
position: 'absolute',
right: 0,
},
body: {
backgroundColor: Colors.grey,
},
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
},
sectionTitle: {
fontSize: 24,
fontWeight: '600',
color: Colors.black,
},
sectionDescription: {
marginTop: 8,
fontSize: 18,
fontWeight: '400',
color: Colors.dark,
},
highlight: {
fontWeight: '700',
},
footer: {
color: Colors.dark,
fontSize: 12,
fontWeight: '600',
padding: 4,
paddingRight: 12,
textAlign: 'right',
},
});
export default App;_`