Skip to content

RFValue offset for unsafe iPhoneX #50

@hsj1514

Description

@hsj1514

look at the offset of RFValue, for iPhone X, you are assigning a value of 78. This is probably 44 returned by getStatusBarHeight plus 34 returned by getBottomSpace. However, according to the 'react-native-iphone-x-helper' document, for unsafe iPhoneX, getStatusBarHeight returns 30. Therefore, offset cannot always be 78. Therefore, it seems reasonable to modify 78 to getStatusBarHeight() + getBottomSpace().

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions