This file contains hidden or 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
| #!/bin/zsh | |
| # Expo Server Manager - Prompts to kill existing port 8081 process before starting Expo dev server | |
| # | |
| # Setup: | |
| # 1. Save this file to ~/.expo-server-manager.sh | |
| # 2. Add to ~/.zshrc: source ~/.expo-server-manager.sh | |
| # 3. Add aliases: | |
| # alias es='start_expo false' | |
| # alias esc='start_expo true' |
This file contains hidden or 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
| export default function RootLayout() { | |
| return ( | |
| <Stack> | |
| <Stack.Screen | |
| name="(drawer)" | |
| options={{ | |
| headerShown: false, | |
| }} | |
| /> | |
| <Stack.Screen |
This file contains hidden or 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
| import React from 'react'; | |
| import type {PropsWithChildren} from 'react'; | |
| import {SafeAreaView, Text, ScrollView, StyleSheet, View} from 'react-native'; | |
| function Row({children}: PropsWithChildren): JSX.Element { | |
| return ( | |
| <View | |
| style={{ | |
| flexDirection: 'row', | |
| columnGap: 15, |
This file contains hidden or 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
| import React, {useEffect, useState} from "react"; | |
| import { View, Text, StyleSheet, TouchableOpacity, ScrollView, Image } from "react-native"; | |
| import { useNavigation } from "@react-navigation/native"; | |
| const HomeScreen = () => { | |
| const navigation = useNavigation(); | |
| const [data, setData] = useState([]); | |
| const [filteredData, setFilteredData] = useState([]); | |
This file contains hidden or 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
| return ( | |
| <ScrollView> | |
| <Text style={styles.textFriends}>{data.length} Friends</Text> | |
| { | |
| data.map((item, index) => { | |
| return ( | |
| <View key={index} style={styles.itemContainer}> | |
| <Image | |
| source={{ uri: item.picture.large }} | |
| style={styles.image} |
This file contains hidden or 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
| import React, { useEffect, useState } from "react"; | |
| import { View, Text } from "react-native"; | |
| const HomeScreen = () => { | |
| const [data, setData] = useState([]); | |
| useEffect(() => { | |
| fetchData("https://randomuser.me/api/?results=20"); | |
| }, []); |
This file contains hidden or 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
| import React from "react"; | |
| import { View, Text } from "react-native"; | |
| const HomeScreen = () => { | |
| return ( | |
| <View> | |
| <Text | |
| style={{ | |
| fontSize: 30, | |
| textAlign: "center", |
This file contains hidden or 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
| import React from "react"; | |
| import { View, Text } from "react-native"; | |
| const HomeScreen = () => { | |
| return ( | |
| <View> | |
| <Text | |
| style={{ | |
| fontSize: 30, | |
| textAlign: "center", |
This file contains hidden or 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
| import React from "react"; | |
| import { View, Text } from "react-native"; | |
| const SettingsScreen = () => { | |
| return ( | |
| <View> | |
| <Text | |
| style={{ | |
| fontSize: 30, | |
| textAlign: "center", |
This file contains hidden or 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
| import React from "react"; | |
| import { View, Text } from "react-native"; | |
| const StackScreen = () => { | |
| return ( | |
| <View> | |
| <Text | |
| style={{ | |
| fontSize: 30, | |
| textAlign: "center", |
NewerOlder