Skip to content

Commit

Permalink
chore(deps): remove recoil
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Oct 1, 2024
1 parent c55a4ba commit 3309270
Show file tree
Hide file tree
Showing 4 changed files with 319 additions and 188 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
"react-native-tab-view": "^3.5.2",
"react-native-web": "~0.19.12",
"react-native-web-lottie": "^1.4.4",
"react-native-webview": "13.8.6",
"recoil": "^0.7.7"
"react-native-webview": "13.8.6"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -77,7 +76,6 @@
"@types/i18n-js": "^3.8.9",
"@types/jest": "^29.5.13",
"@types/react": "~18.2.79",
"@types/recoil": "^0.0.9",
"ajv": "^8.17.1",
"babel-jest": "^29.7.0",
"commitlint-plugin-function-rules": "^4.0.0",
Expand Down
27 changes: 12 additions & 15 deletions src/providers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import FallbackComponent from 'react-native-error-boundary/lib/ErrorBoundary/Fal
import {ActionSheetProvider} from '@expo/react-native-action-sheet';
import type {ThemeType} from 'dooboo-ui';
import {DoobooProvider} from 'dooboo-ui';
import {RecoilRoot} from 'recoil';

import {theme} from '../theme';
import {handleErrorConsole} from '../utils/error';
Expand All @@ -15,21 +14,19 @@ interface Props {

function RootProvider({initialThemeType, children}: Props): JSX.Element {
return (
<RecoilRoot>
<DoobooProvider
themeConfig={{
initialThemeType: initialThemeType ?? undefined,
customTheme: theme,
}}
<DoobooProvider
themeConfig={{
initialThemeType: initialThemeType ?? undefined,
customTheme: theme,
}}
>
<ErrorBoundary
FallbackComponent={FallbackComponent}
onError={handleErrorConsole}
>
<ErrorBoundary
FallbackComponent={FallbackComponent}
onError={handleErrorConsole}
>
<ActionSheetProvider>{children}</ActionSheetProvider>
</ErrorBoundary>
</DoobooProvider>
</RecoilRoot>
<ActionSheetProvider>{children}</ActionSheetProvider>
</ErrorBoundary>
</DoobooProvider>
);
}

Expand Down
Loading

0 comments on commit 3309270

Please sign in to comment.