Browse Source

Temporary send notification button on home_page

ErnestoOrtiz2 2 years ago
parent
commit
611448a585
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      screens/main/Home_page.js

+ 6
- 0
screens/main/Home_page.js View File

@@ -150,6 +150,12 @@ export function Home_page({navigation}) {
150 150
         )}
151 151
         />
152 152
       <Button
153
+        title ='Send notification'
154
+        onPress={async () => {
155
+          await sendPushNotification(expoPushToken);
156
+        }}
157
+      /> 
158
+      <Button
153 159
         title ='Hacer Busqueda'
154 160
         onPress= {() => navigation.navigate('Search')}
155 161
       />