@dubsdotapp/expo 0.2.59 → 0.2.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2381,6 +2381,14 @@ function usePushNotifications() {
2381
2381
  return null;
2382
2382
  }
2383
2383
  }, []);
2384
+ (0, import_react16.useEffect)(() => {
2385
+ const Notifications = getNotificationsModule();
2386
+ if (!Notifications) return;
2387
+ Notifications.getPermissionsAsync().then(({ status }) => {
2388
+ if (status === "granted") setHasPermission(true);
2389
+ }).catch(() => {
2390
+ });
2391
+ }, [getNotificationsModule]);
2384
2392
  const getDeviceName = (0, import_react16.useCallback)(() => {
2385
2393
  try {
2386
2394
  const Device = require("expo-device");
@@ -3713,6 +3721,7 @@ function UserProfileSheet({
3713
3721
  }
3714
3722
  )
3715
3723
  ] }),
3724
+ push.error ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native10.View, { style: [styles4.errorBox, { backgroundColor: t.errorBg, borderColor: t.errorBorder }], children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native10.Text, { style: [styles4.errorText, { color: t.errorText }], children: push.error.message }) }) : null,
3716
3725
  onDisconnect ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3717
3726
  import_react_native10.TouchableOpacity,
3718
3727
  {