Revert then refix because shit got broken
This commit is contained in:
@ -4,7 +4,6 @@ import * as Device from 'expo-device';
|
||||
import * as Notifications from 'expo-notifications';
|
||||
import Constants from 'expo-constants';
|
||||
import type { NotificationMessage } from '@/constants/Types';
|
||||
import { ThemedText } from '@/components/theme/Theme';
|
||||
|
||||
Notifications.setNotificationHandler({
|
||||
handleNotification: async () => ({
|
||||
@ -115,12 +114,7 @@ export const PushNotificationManager = ({children}: {children: React.ReactNode})
|
||||
Notifications.removeNotificationSubscription(responseListener.current);
|
||||
};
|
||||
}, []);
|
||||
//return ( <> {children} </> );
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
{children}
|
||||
</ErrorBoundary>
|
||||
);
|
||||
return ( <ErrorBoundary>{children}</ErrorBoundary> );
|
||||
};
|
||||
|
||||
class ErrorBoundary extends React.Component<{children: React.ReactNode}, {hasError: boolean}> {
|
||||
|
Reference in New Issue
Block a user