Skip to content

Commit

Permalink
chore: making toast on error local to apollo client
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasburtey authored and Nicolas Burtey committed Feb 12, 2023
1 parent 5174370 commit e149342
Show file tree
Hide file tree
Showing 18 changed files with 87 additions and 342 deletions.
6 changes: 0 additions & 6 deletions __mocks__/@react-native-firebase/crashlytics.js

This file was deleted.

Empty file.
3 changes: 0 additions & 3 deletions __mocks__/react-native-device-info.js

This file was deleted.

26 changes: 0 additions & 26 deletions __mocks__/react-native-firebase.js

This file was deleted.

3 changes: 0 additions & 3 deletions __mocks__/react-native-geetest-module.js

This file was deleted.

5 changes: 0 additions & 5 deletions __mocks__/react-native-iphone-x-helper.js

This file was deleted.

8 changes: 0 additions & 8 deletions __mocks__/react-native-push-notification.js

This file was deleted.

27 changes: 0 additions & 27 deletions __mocks__/react-native-secure-key-store.js

This file was deleted.

10 changes: 0 additions & 10 deletions __mocks__/react-navigation-native.js

This file was deleted.

3 changes: 0 additions & 3 deletions __mocks__/react-navigation-stack.js

This file was deleted.

149 changes: 0 additions & 149 deletions __tests__/screens/global-error.spec.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { Dimensions } from "react-native"
import ErrorBoundary from "react-native-error-boundary"
import EStyleSheet from "react-native-extended-stylesheet"
import { RootSiblingParent } from "react-native-root-siblings"
import { GlobalErrorToast } from "./components/global-error"
import { RootStack } from "./navigation/root-navigator"
import { ErrorScreen } from "./screens/error-screen"
import { ThemeProvider } from "@rneui/themed"
Expand Down Expand Up @@ -56,7 +55,6 @@ export const App = () => (
<ErrorBoundary FallbackComponent={ErrorScreen}>
<NavigationContainerWrapper>
<RootSiblingParent>
<GlobalErrorToast />
<RootStack />
<GaloyToast />
</RootSiblingParent>
Expand Down
87 changes: 0 additions & 87 deletions app/components/global-error/global-error.tsx

This file was deleted.

1 change: 0 additions & 1 deletion app/components/global-error/index.ts

This file was deleted.

Loading

0 comments on commit e149342

Please sign in to comment.