瀏覽代碼

Temporary send notification button on home_page

ErnestoOrtiz2 3 年之前
父節點
當前提交
611448a585
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      screens/main/Home_page.js

+ 6
- 0
screens/main/Home_page.js 查看文件

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
       />