umhan35 / react-native-search-bar

The high-quality iOS native search bar for react native.
MIT License
861 stars 207 forks source link

Cannot read property ComponentHeight of undefined #164

Closed dan-fein closed 4 years ago

dan-fein commented 4 years ago

I've been using this on iOS and it works really well. Would love to use it on Android, but on attempt, I'm receiving Cannot read property ComponentHeight of undefined

Presumably, it can't find the module?

I didn't import anything into MainApplication.java like I have for others, not sure what the package name would be / path to import it.

package.json:

    "react-native-search-bar": "^3.5.0",

This is my settings.gradle:

rootProject.name = 'Tabs'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'

Happy to provide more information.

dan-fein commented 4 years ago

This was solved by linking manually with:

react-native link react-native-search-bar