瀏覽代碼

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