Skip to content

Commit

Permalink
demo/styled-text-usage
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamCallao committed Mar 16, 2024
1 parent 41e5e21 commit fdb9bc2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
import React from "react";
import { View } from "react-native";
import { MenuProvider } from "react-native-popup-menu";
import AppNavigator from "./src/navigation/AppNavigator";
import StyledText from "./src/utils/StyledText";

const App = () => {
return (
<MenuProvider>
<AppNavigator />
<View style={{ flex: 1, justifyContent: "center" }}>
<View style={{ alignItems: "center", marginTop: 20, gap:20 }}>
<StyledText regularText>Texto Regular</StyledText>
<StyledText boldText>Texto en Negrita</StyledText>
<View style={{ backgroundColor: 'gray'}}>
<StyledText buttonText>Texto de Botón</StyledText>
</View>
</View>
</View>
</MenuProvider>
);
};
Expand Down

0 comments on commit fdb9bc2

Please sign in to comment.