Agontuk / react-native-collapsible-toolbar

Pure JS based collapsible toolbar for react native on Android and iOS
MIT License
56 stars 13 forks source link

iPhone X #3

Closed odesey closed 6 years ago

odesey commented 6 years ago

There is an incompatibility with the iPhone X. I modified the package slightly to fix the issue:

const isIphoneX = () => {
    let d = Dimensions.get("window");
    const { height, width } = d;
    const result = height === 812 ? 74 : 44;
    return result;
};

...

const APPBAR_HEIGHT = Platform.OS === "ios" ? isIphoneX() : 56;
Agontuk commented 6 years ago

Thanks, I'll take a look and fix the issue as soon as possible.

Agontuk commented 6 years ago

Fixed in v0.1.2