-
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.
broken expo router, duplicated files
- Loading branch information
Melissa Liu
committed
Oct 8, 2023
1 parent
8c3f7dc
commit 76df34d
Showing
10 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Empty file.
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 |
---|---|---|
@@ -1,13 +1,28 @@ | ||
import { Link } from 'expo-router'; | ||
import React from 'react'; | ||
import { Text, TouchableOpacity } from 'react-native'; | ||
import { Pressable, Text, TouchableOpacity } from 'react-native'; | ||
import styles from './styles'; | ||
|
||
function StyledButton({ text }: { text: string }) { | ||
function StyledButton({ text, file }: { text: string; file: string }) { | ||
return ( | ||
<TouchableOpacity style={[styles.buttonContainer]} activeOpacity={0.7}> | ||
<Text style={[styles.buttonText]}>{text}</Text> | ||
</TouchableOpacity> | ||
<Link href={file} asChild> | ||
<Pressable> | ||
<TouchableOpacity style={[styles.buttonContainer]} activeOpacity={0.7}> | ||
<Text style={[styles.buttonText]}>{text}</Text> | ||
</TouchableOpacity> | ||
</Pressable> | ||
</Link> | ||
); | ||
} | ||
|
||
export default StyledButton; | ||
|
||
/* | ||
<Link href={file} asChild> | ||
<Pressable> | ||
<TouchableOpacity style={[styles.buttonContainer]} activeOpacity={0.7}> | ||
<Text style={[styles.buttonText]}>{text}</Text> | ||
</TouchableOpacity> | ||
</Pressable> | ||
</Link> | ||
*/ |
Empty file.
Empty file.
Empty file.
Empty file.