i'm trying to get the window dimensions with React Native, but it gives me the dimension with the StatusBar height, i need to substract it.
How can i do that?
Thanks
RESOLVED
We can get the StatusBar height in this way:
import { StatusBar } from 'react-native';
console.log(StatusBar.currentHeight)
This only works on Android.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.