diff options
Diffstat (limited to 'src/view/screens/Storybook/index.tsx')
-rw-r--r-- | src/view/screens/Storybook/index.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/view/screens/Storybook/index.tsx b/src/view/screens/Storybook/index.tsx index f1152fb7e..f7ac11ffc 100644 --- a/src/view/screens/Storybook/index.tsx +++ b/src/view/screens/Storybook/index.tsx @@ -1,6 +1,8 @@ import React from 'react' import {ScrollView, View} from 'react-native' +import {useNavigation} from '@react-navigation/native' +import {NavigationProp} from '#/lib/routes/types' import {isWeb} from '#/platform/detection' import {useSetThemePrefs} from '#/state/shell' import {CenteredView} from '#/view/com/util/Views' @@ -39,6 +41,7 @@ function StorybookInner() { const t = useTheme() const {setColorMode, setDarkTheme} = useSetThemePrefs() const [showContainedList, setShowContainedList] = React.useState(false) + const navigation = useNavigation<NavigationProp>() return ( <CenteredView style={[t.atoms.bg]}> @@ -86,6 +89,16 @@ function StorybookInner() { </Button> </View> + <Button + variant="solid" + color="primary" + size="small" + onPress={() => navigation.navigate('SharedPreferencesTester')} + label="two" + testID="sharedPrefsTestOpenBtn"> + <ButtonText>Open Shared Prefs Tester</ButtonText> + </Button> + <Admonitions /> <ThemeProvider theme="light"> |