Closed ChristinaKrapivina closed 2 years ago
@AndreiCalazans It would be awesome, if you could take a look at this fix. It resolves the issue, that people were sharing.
@AndreiCalazans Good day. Could you have a look at the fix and let me know if it's okay? This issue is very important for our prod.
Hi @AndreiCalazans!!! Please take a look on this PR. It will fix a lot of troubles with rendering of the component.
Hi All,
Not working on Xiaomi K20pro
export const ActualScreenHeight = Platform.select({
ios: ScreenHeight,
android: ScreenHeight - StatusBar.currentHeight,
});
Works on all devices I've tested so far
I also had issues when using different fontscaling on my device. I made a seperate PR https://github.com/AndreiCalazans/rn-tooltip/pull/84
Reference Issues
Android issue padding between pointer and container 74. Link
Fix explanation
Dimensions.get('window').height returns wrong height on Android. Here is an open react native issue.
I've modified screenHeight calculations depending on the system, and the status bar height.