Skip to content

Instantly share code, notes, and snippets.

@WrathChaos
Last active November 10, 2021 18:22
Show Gist options
  • Save WrathChaos/4a1d5f19fdcef09761bf4c377ac1268b to your computer and use it in GitHub Desktop.
Save WrathChaos/4a1d5f19fdcef09761bf4c377ac1268b to your computer and use it in GitHub Desktop.
Basic Usage of React Native Dynamic SearchBar
import SearchBar from "react-native-dynamic-search-bar"

<SearchBar
  fontColor="#c6c6c6"
  iconColor="#c6c6c6"
  shadowColor="#282828"
  cancelIconColor="#c6c6c6"
  backgroundColor="#353d5e"
  placeholder="Search here"
  onChangeText={(text) => this.filterList(text)}
  onSearchPress={() => console.log("Search Icon is pressed")}
  onClearPress={() => this.filterList("")}
  onPress={() => alert("onPress")}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment