Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native unexpected token, expected ";" #7

Open
aixauno opened this issue Jun 2, 2020 · 0 comments
Open

React Native unexpected token, expected ";" #7

aixauno opened this issue Jun 2, 2020 · 0 comments

Comments

@aixauno
Copy link

aixauno commented Jun 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant