1.0.12 • Published 4 years ago
@zettabrasil/react-native-searchbar v1.0.12
Install
npm i -S @zettabrasil/react-native-searchbarWe will need to install first the following libraries to get this working well:
@react-native-community/voice.
npm i -S @react-native-community/voiceNeed to include permissions for NSMicrophoneUsageDescription and NSSpeechRecognitionUsageDescription inside Info.plist for iOS. See the included VoiceTest for how to handle these cases.
<dict>
...
<key>NSMicrophoneUsageDescription</key>
<string>Description of why you require the use of the microphone</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>Description of why you require the use of the speech recognition</string>
...
</dict>@react-native-community/async-storage.
npm i -S @react-native-community/async-storageLink the iOS package
npx pod-installUsage
Checkout the example
This library depends on react-native-root-siblings to work properly. So, it is necessary to make the following configuration in the root app component:
import { SearchBarWrapper } from '@zettabrasil/react-native-searchbar';
export default function App() {
return (
<SearchBarWrapper>
<View>
{ /* app content */ }
</View>
</SearchBarWrapper>
);
}