Commit 0fd284c4 by G

Using restyle Text component

parent ff59365e
import Text from "@components/bases/Text";
import { ThemeProvider } from "@shopify/restyle"; import { ThemeProvider } from "@shopify/restyle";
import theme from "@themes/AppTheme"; import theme from "@themes/AppTheme";
import { StatusBar } from "expo-status-bar"; import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native"; import { StyleSheet, View } from "react-native";
export default function App() { export default function App() {
return ( return (
<ThemeProvider theme={theme}> <ThemeProvider theme={theme}>
<View style={styles.container}> <View style={styles.container}>
<Text>Open up App.tsx to start working on your app!!</Text>
<StatusBar style="auto" /> <StatusBar style="auto" />
<Text color="cardPrimaryBackground">Restyle Text</Text>
</View> </View>
</ThemeProvider> </ThemeProvider>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment