Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9e5b600

Browse files
committedMar 10, 2025··
refactor(ui): bottom sheets
1 parent 9272e1e commit 9e5b600

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+503
-467
lines changed
 
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
diff --git a/node_modules/@gorhom/bottom-sheet/lib/typescript/types.d.ts b/node_modules/@gorhom/bottom-sheet/lib/typescript/types.d.ts
2+
index 27f39a1..74223d9 100644
3+
--- a/node_modules/@gorhom/bottom-sheet/lib/typescript/types.d.ts
4+
+++ b/node_modules/@gorhom/bottom-sheet/lib/typescript/types.d.ts
5+
@@ -91,6 +91,14 @@ export interface BottomSheetModalMethods extends BottomSheetMethods {
6+
* @see {WithTimingConfig}
7+
*/
8+
dismiss: (animationConfigs?: WithSpringConfig | WithTimingConfig) => void;
9+
+ /**
10+
+ * Get the current index of the bottom sheet modal.
11+
+ */
12+
+ getCurrentIndex: () => number;
13+
+ /**
14+
+ * Check if the bottom sheet modal is open.
15+
+ */
16+
+ isOpen: boolean;
17+
}
18+
//#endregion
19+
20+
diff --git a/node_modules/@gorhom/bottom-sheet/src/components/bottomSheetModal/BottomSheetModal.tsx b/node_modules/@gorhom/bottom-sheet/src/components/bottomSheetModal/BottomSheetModal.tsx
21+
index 275ce50..80cd2b8 100644
22+
--- a/node_modules/@gorhom/bottom-sheet/src/components/bottomSheetModal/BottomSheetModal.tsx
23+
+++ b/node_modules/@gorhom/bottom-sheet/src/components/bottomSheetModal/BottomSheetModal.tsx
24+
@@ -363,6 +363,8 @@ const BottomSheetModalComponent = forwardRef<
25+
// internal
26+
minimize: handleMinimize,
27+
restore: handleRestore,
28+
+ getCurrentIndex: () => currentIndexRef.current,
29+
+ isOpen: animateOnMount ? currentIndexRef.current !== -1 : false,
30+
}));
31+
//#endregion
32+

‎src/App.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { ThemeProvider } from 'styled-components/native';
1515
import './utils/i18n';
1616
import './utils/quick-actions';
1717
import AppOnboarded from './AppOnboarded';
18-
import { SlashtagsProvider } from './components/SlashtagsProvider';
1918
import { toastConfig } from './components/Toast';
2019
import { useAppSelector } from './hooks/redux';
2120
import AppUpdate from './screens/AppUpdate';
@@ -78,9 +77,7 @@ const App = (): ReactElement => {
7877
) : hasCriticalUpdate ? (
7978
<AppUpdate />
8079
) : walletExists && !requiresRemoteRestore ? (
81-
<SlashtagsProvider>
82-
<AppOnboarded />
83-
</SlashtagsProvider>
80+
<AppOnboarded />
8481
) : (
8582
<Suspense fallback={null}>
8683
<OnboardingNavigator />

0 commit comments

Comments
 (0)
Please sign in to comment.