WrathChaos / react-native-dynamic-search-bar

Medium Article: https://freakycoder.com/react-native-library-dynamic-search-bar-c03fea9fae36
MIT License
480 stars 52 forks source link

create searchBarRef, how to get text? #97

Open fukemy opened 2 years ago

fukemy commented 2 years ago

Hi, i want to create searchBarRef to avoid re-render searchBar and no need to using state to hold the text

ref={seachBarRef}

now i want to get the text, but it's only return null, can u help? here is my code: seachBarRef.current.text