Nativebase: ListItem background color gets black while pressed in iOS

Created on 2 Mar 2017  路  3Comments  路  Source: GeekyAnts/NativeBase

I've just Native Base in my project from 2.0.5 to 2.0.11. My React-Native version is 0.40 and React is 15.4.2.

After the update, when I click on a ListItem it's background gets totally black.

image

I have not touched any style related with ListItem or TouchableOpacity.

Is there any way to solve this without returning to 2.0.5?

Most helpful comment

I found the solution. I missed one line in my theme file while I was migrating it: listBtnUnderlayColor: '#DDD'.

Thank you!

All 3 comments

Did you eject your variables?

I used node node_modules/native-base/ejectTheme.js but I did not touch anything in components.

I found the solution. I missed one line in my theme file while I was migrating it: listBtnUnderlayColor: '#DDD'.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings