robcalcroft / react-native-in-app-notification

:bell: Customisable in-app notification component for React Native
MIT License
270 stars 78 forks source link

Warning: Failed prop type: Invalid prop `top` supplied to `View`. #18

Closed sant3001 closed 1 year ago

sant3001 commented 6 years ago

This warning is poping up in the console every time and it is coming from src/DefaultNotificationBody/index.ios.js. On line 14 the code should be changed from:

top: isIphoneX() && getStatusBarHeight(),

to

top: isIphoneX() ? getStatusBarHeight() : 0,
pabichw commented 5 years ago

Thanks a lot for the fix. That warning can be pretty annoying :+1:

AleksandarSavic95 commented 5 years ago

I am still getting this warning. When will the patch be relased?