react-native-simple-login icon indicating copy to clipboard operation
react-native-simple-login copied to clipboard

React Native unexpected token, expected ";"

Open aixauno opened this issue 4 years ago • 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 ( <> <StatusBar barStyle="dark-content" /> <SafeAreaView> <ScrollView contentInsetAdjustmentBehavior="automatic" style={styles.scrollView}> <Header /> {global.HermesInternal == null ? null : ( <View style={styles.engine}> <Text style={styles.footer}>Engine: Hermes</Text> </View> )} <View style={styles.body}> <View style={styles.sectionContainer}> <Text style={styles.sectionTitle}>Step One</Text> <Text style={styles.sectionDescription}> Edit <Text style={styles.highlight}>App.js</Text> to change this screen and then come back to see your edits. </Text> </View> <LearnMoreLinks /> <TouchableHighlight onPress={(this.onLogin.bind(this))}> <Text>LogIn</Text> </TouchableHighlight> </View> </ScrollView> </SafeAreaView> </> ); };

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

aixauno avatar Jun 02 '20 14:06 aixauno