Expo.Constants.statusBarHeight is undefined

On the Android emulator, statusBarHeight is not defined. Is this a bug?

Which Android emulator are you using? AVD, Genymotion?

I tried both.

Can you paste an example of the code that reproduces this? Maybe try using https://snack.expo.io/, as that also uses Android emulators if you toggle the platform over to Android on the bottom.

Sigh… I was my fault. I was doing

            import Constants from ‘expo’;

Rather than

            import { Constants } from ‘expo;

Constants now its a separated package, so run : expo install expo-contants, then import Constants from 'expo-constants’

2 Likes