WrathChaos / react-native-dynamic-search-bar

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

requireNativeComponent: "RNSpinkit" was not found in the UIManager. #50

Closed ithustle closed 3 years ago

ithustle commented 3 years ago

After install this library and its dependencies, my app crash with this error:

Invariant Violation: requireNativeComponent: "RNSpinkit" was not found in the UIManager

My code:

<SearchBar
                    height={56}
                    placeholderTextColor='#fff'
                    placeholder="Procurar oradores..."
                    spinnerVisibility={true}
                    onPress={() => alert("onPress")}
                    style={{ backgroundColor: '#14292F', borderRadius: 0, width: '100%', height: 56, shadowColor: '#14292F' }}
                    searchIconImageStyle={{ tintColor: '#fff' }}
                    clearIconImageStyle={{ tintColor: '#fff' }}
                    textInputStyle={styles.inputs}
                    onClearPress={() => null }
                    onChangeText={(text) => console.log(text)}
                />
ithustle commented 3 years ago

Installed and all good.

WrathChaos commented 3 years ago

@ithustle Can you prove the solution in case someone can find it :)

ithustle commented 3 years ago

Yep. I had to install this library https://github.com/maxs15/react-native-spinkit (following the doc) and works fine

sayan-wholewave commented 2 months ago

The problem comes from https://www.npmjs.com/package/react-native-dynamic-search-bar. here it is mentioned that need react-native-animated-spinkit

Screenshot 2024-07-12 at 12 43 21 PM

But in github they have mentioned to install react-native-spinkit . Both are different libraries.