From dce69e09f6d618de39be469de73a19470b0e1e55 Mon Sep 17 00:00:00 2001 From: FreakyCoder Date: Sun, 18 Oct 2020 17:38:31 +0300 Subject: [PATCH] Built-in spinner is here --- example/App.tsx | 2 +- example/lib/SearchBar.style.ts | 29 ++++++++++++ example/lib/SearchBar.tsx | 87 ++++++++++++++++++++++------------ 3 files changed, 86 insertions(+), 32 deletions(-) diff --git a/example/App.tsx b/example/App.tsx index 817d386..d8799dc 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -15,7 +15,7 @@ export default class App extends Component { render() { return ( - + ); } diff --git a/example/lib/SearchBar.style.ts b/example/lib/SearchBar.style.ts index b3fcc56..f9de01b 100644 --- a/example/lib/SearchBar.style.ts +++ b/example/lib/SearchBar.style.ts @@ -2,6 +2,12 @@ import { ViewStyle, ImageStyle, TextStyle, StyleSheet } from "react-native"; interface Style { container: ViewStyle; + searchContainer: ViewStyle; + searchIconImageStyle: ImageStyle; + textInputStyle: TextStyle; + cancelIconImageStyle: ImageStyle; + cancelIconContainer: ViewStyle; + spinnerContainer: ViewStyle; } export default StyleSheet.create