Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Trying to upload JavaScript code to Expo for React Native App

$
0
0

So this is what I have so far, as file App.js. I am using the code to get accustomed to Expo platform since coding on Windows and making an iOS app. However, when I am scanning the QR code and see the app on Expo, I still keep a message stating “Open up App.js to start working on your app!” I have opened App.js on my desktop but nothing is showing. I am connecting the QR code on my iphone to a LAN. Any help would be appreciated.

App.js file:

import React, { Component } from ‘react’import {StyleSheet,TouchableOpacity,Text,View,} from ‘react-native’class App extends Component {state = {count: 0}onPress = () => {this.setState({count: this.state.count + 1})}render() {return (Click meYou clicked { this.state.count } times)}}const styles = StyleSheet.create({container: {flex: 1,justifyContent: ‘center’,alignItems: ‘center’,},button: {alignItems: ‘center’,backgroundColor: ‘#DDDDDD’,padding: 10,marginBottom: 10;}})export default App;

Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>