Browse Source

Temporary send notification button on home_page

ErnestoOrtiz2 3 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
         )}
150
         )}
151
         />
151
         />
152
       <Button
152
       <Button
153
+        title ='Send notification'
154
+        onPress={async () => {
155
+          await sendPushNotification(expoPushToken);
156
+        }}
157
+      /> 
158
+      <Button
153
         title ='Hacer Busqueda'
159
         title ='Hacer Busqueda'
154
         onPress= {() => navigation.navigate('Search')}
160
         onPress= {() => navigation.navigate('Search')}
155
       />
161
       />