Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shinout
Last active March 16, 2017 12:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinout/26dc5177a963a4f3dce71355255ab7b4 to your computer and use it in GitHub Desktop.
Save shinout/26dc5177a963a4f3dce71355255ab7b4 to your computer and use it in GitHub Desktop.
次のコードは警告が出ます。何行目が原因?#cureapp_quiz をつけてtweetしよう!
1 import React from 'react'
2 import { AppRegistry, StyleSheet, Text, View } from 'react-native'
3 const styles = StyleSheet.create({
4 container: {
5 flex: 1,
6 justifyContent: 'center',
7 alignItems: 'center',
8 color: '#000000',
9 backgroundColor: '#F5FCFF',
10 },
11 text: {
12 fontSize: 20,
13 textAlign: 'center',
14 margin: 10,
15 },
16 })
17 export default function Quiz() {
18 return (
19 <View style={styles.container}>
20 <Text style={styles.text}>Welcome to React Native!</Text>
21 </View>
22 )
23 }
24 AppRegistry.registerComponent('quiz', () => Quiz)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment