From 50603991653c4c2bc7b478d83de99bfc9a21d385 Mon Sep 17 00:00:00 2001 From: Jakub Grzywacz Date: Wed, 28 Jul 2021 18:56:38 +0200 Subject: [PATCH] docs: add example --- example/src/App.tsx | 2 ++ example/src/Examples/Examples.tsx | 5 ++++ example/src/SearchBar/SearchBar.tsx | 44 +++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 example/src/SearchBar/SearchBar.tsx diff --git a/example/src/App.tsx b/example/src/App.tsx index 320eeab..74ef3d5 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -11,6 +11,7 @@ import StaticModal from './StaticModal/StaticModal'; import Static from './Static/Static'; import TopCategory from './TopCategory/TopCategory'; import BottomCategory from './BottomCategory/BottomCategory'; +import SearchBar from './SearchBar/SearchBar'; const Stack = createStackNavigator(); export default () => { @@ -29,6 +30,7 @@ export default () => { + ); diff --git a/example/src/Examples/Examples.tsx b/example/src/Examples/Examples.tsx index 675a11a..ebc7ea9 100644 --- a/example/src/Examples/Examples.tsx +++ b/example/src/Examples/Examples.tsx @@ -13,6 +13,7 @@ type RootStackParamList = { Static: undefined; TopCategory: undefined; BottomCategory: undefined; + SearchBar: undefined; }; type Props = StackScreenProps; @@ -47,6 +48,10 @@ const Examples = ({ navigation }: Props) => { title="Category Bottom" onPress={() => navigation.navigate('BottomCategory')} /> +