Skip to content

React Native unexpected token, expected ";" #7

@aixauno

Description

@aixauno

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

`_/**

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;_`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions