This repository has been archived by the owner on Jan 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
6,924 additions
and
10,241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
> Why do I have a folder named ".expo-shared" in my project? | ||
The ".expo-shared" folder is created when running commands that produce state that is intended to be shared with all developers on the project. For example, "npx expo-optimize". | ||
|
||
> What does the "assets.json" file contain? | ||
The "assets.json" file describes the assets that have been optimized through "expo-optimize" and do not need to be processed again. | ||
|
||
> Should I commit the ".expo-shared" folder? | ||
Yes, you should share the ".expo-shared" folder with your collaborators. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true, | ||
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true | ||
"ec72f44c26176596b3f8f4ff2733f1c6a0f87fe6224a117439a1caea409505fd": true, | ||
"24272cdaeff82cc5facdaccd982a6f05b60c4504704bbf94c19a6388659880bb": true, | ||
"5193b4ad8735090dcbfaf0e070e7354ee4bc3b7951faf1edbe2757aa21757f96": true, | ||
"4c27b7466a8169ab063b6150f65d7c75c2919ff2c1e5572f55d537c6ca04ff9e": true, | ||
"5deb055be550b37ca358a297078e0b7f15f2a3f95c0c5cfb6db9c9e376cc7900": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
node_modules/**/* | ||
.expo/* | ||
node_modules/ | ||
.expo | ||
npm-debug.* | ||
*.jks | ||
*.p8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,89 @@ | ||
/* eslint-disable react/style-prop-object */ | ||
import { StatusBar } from 'expo-status-bar'; | ||
import React from 'react'; | ||
import { StyleSheet, Text, View } from 'react-native'; | ||
import React from "react"; | ||
import { | ||
StyleSheet, | ||
Button, | ||
View, | ||
SafeAreaView, | ||
Text, | ||
Alert, | ||
} from "react-native"; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
justifyContent: "center", | ||
marginHorizontal: 16, | ||
}, | ||
title: { | ||
textAlign: "center", | ||
marginVertical: 8, | ||
}, | ||
fixToText: { | ||
flexDirection: "row", | ||
justifyContent: "space-between", | ||
}, | ||
separator: { | ||
marginVertical: 8, | ||
borderBottomColor: "#737373", | ||
borderBottomWidth: StyleSheet.hairlineWidth, | ||
}, | ||
}); | ||
|
||
const Separator = () => <View style={styles.separator} />; | ||
|
||
export default function App(): JSX.Element { | ||
return ( | ||
<View style={styles.container}> | ||
<Text>Open up App.tsx to start working on your app!</Text> | ||
<StatusBar style="auto" /> | ||
</View> | ||
<SafeAreaView style={styles.container}> | ||
<View> | ||
<Text style={styles.title}> | ||
The title and onPress handler are required. It is recommended to set | ||
accessibilityLabel to help make your app usable by everyone. :) | ||
</Text> | ||
<Button | ||
title="Press me" | ||
onPress={() => Alert.alert("Simple Button pressed")} | ||
/> | ||
</View> | ||
<Separator /> | ||
<View> | ||
<Text style={styles.title}> | ||
Adjust the color in a way that looks standard on each platform. On | ||
iOS, the color prop controls the color of the text. On Android, the | ||
color adjusts the background color of the button. | ||
</Text> | ||
<Button | ||
title="Press me" | ||
color="#f194ff" | ||
onPress={() => Alert.alert("Button with adjusted color pressed")} | ||
/> | ||
</View> | ||
<Separator /> | ||
<View> | ||
<Text style={styles.title}> | ||
All interaction for the component are disabled. | ||
</Text> | ||
<Button | ||
title="Press me" | ||
disabled | ||
onPress={() => Alert.alert("Cannot press this one")} | ||
/> | ||
</View> | ||
<Separator /> | ||
<View> | ||
<Text style={styles.title}> | ||
This layout strategy lets the title define the width of the button. | ||
</Text> | ||
<View style={styles.fixToText}> | ||
<Button | ||
title="Left button" | ||
onPress={() => Alert.alert("Left button pressed")} | ||
/> | ||
<Button | ||
title="Right button" | ||
onPress={() => Alert.alert("Right button pressed")} | ||
/> | ||
</View> | ||
</View> | ||
</SafeAreaView> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.