Skip to content

Commit

Permalink
demo/simple-button-usage
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamCallao committed Mar 16, 2024
1 parent 1cadaa3 commit 7550659
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
import React from "react";
import { MenuProvider } from "react-native-popup-menu";
import AppNavigator from "./src/navigation/AppNavigator";
import { View, Alert } from 'react-native';
import SimpleButton from "./src/utils/SimpleButton";

const App = () => {
const handleButton1Press = () => {
};
const handleButtonPress = () => {
Alert.alert('Botón Presionado', 'Has presionado el botón', [
{ text: 'OK' },
]);
};

return (
<MenuProvider>
<AppNavigator />
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center', gap: 40}}>

<SimpleButton
text="Boton 1"
onPress={handleButton1Press}
/>
<SimpleButton
text="Boton 2"
onPress={handleButtonPress}
/>
<SimpleButton
text="Boton 3"
onPress={handleButtonPress}
width={200}
/>
{/* <AppNavigator /> */}
</View>
</MenuProvider>
);
};
Expand Down

0 comments on commit 7550659

Please sign in to comment.