ramilushev / react-native-background-color

Set the root app background color from JavaScript
The Unlicense
17 stars 14 forks source link

Application closes/crashes #12

Closed Hristijan95 closed 4 years ago

Hristijan95 commented 4 years ago

I've implemented the library, it looks like a very simple implementation, however, my applications (both iOS and Android) are just closing on the BackgroundColor.setColor('#FFFFFF'); line.

There is nothing printed, no error, nothing. Any ideas why?

Hristijan95 commented 4 years ago

I've installed it from scratch with clear cache and it works now, so it was me.

muhsin-k commented 4 years ago

@Hristijan95 I am getting the same issue. I uninstalled the app and build again. But nothing changed. Could you please explain what are the steps you did?

Hristijan95 commented 4 years ago

@Hristijan95 I am getting the same issue. I uninstalled the app and build again. But nothing changed. Could you please explain what are the steps you did?

Hi, I've discovered the cause of the crash after I posted this. I was sending rgb(255, 255, 255) in the setColor function, instead of #ffffff.

So, I've replacet this BackgroundColor.setColor('rgb(255, 255, 255)'); with this BackgroundColor.setColor('#FFFFFF');