-
Notifications
You must be signed in to change notification settings - Fork 365
Error 'nativeBackgroundAndroid' on Button #11
Comments
Right so this is because I swapped out the Ripple component with the RN Ripple, which only supports API 21 upwards. I can look at bringing it back in if I can somehow get the api version, but 16 is an old api version? EDIT: Right so what I'll do is bring back the Ripple as a Polyfill for older versions
I need to figure out what versions run what APIs though. |
Currently you can get android api version via Android build class or use react-native-device-info. But it will make this package installation more complicated. api 16 is an old version, but many devices still use this version. By the way, what is the different between Ripple component and RN Ripple? Performance? |
It's okay, I can do something like this:
Performance wasn't actually as much of an issue, it was more complexity along with a few bugs. I'll bring it back though. @pewh What happens when you create a View, and add an |
Thanks, @Ehesp
|
Hi @pewh I've just committed to master (472383d). I've tested this as best I could but I was unable to get my emulator working on API 16. Basically it checks whether the device has the correct API level for a feature, and if not returns a polyfill for it. The Ripple pollyfill had to be changed a bit, as I also wanted to implement A couple of things I've noticed are:
|
Got API 16 working... Added more fixes in, including a border on components if elevation isn't available. |
Sorry for long delay. I've testing on several devices with API 16 and everything is work. Thanks for the great work 👍 |
Good to hear, I'm not sure the |
Hi,
I got error on
Button
when use master branch. Previously it's work on version 0.2.1.package.json
Tested with Genymotion Samsung Galaxy S3 4.1.1 API 16
OS: Win 8.1 32bit
The text was updated successfully, but these errors were encountered: