Skip to content

Commit a601423

Browse files
committed
Fix Modal.TopBar height for each platform
1 parent 3a197e2 commit a601423

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/modal/TopBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ type topBarButtonProp = {
6363
buttonProps?: Omit<ButtonPropTypes, 'onPress'>;
6464
}
6565

66+
const TOP_BAR_HEIGHT = Constants.isIOS ? 44 : 56;
6667
const DEFAULT_BUTTON_PROPS = {
6768
color: Colors.blue30
6869
};
@@ -153,7 +154,7 @@ class TopBar extends Component<ModalTopBarProps> {
153154
const styles = StyleSheet.create({
154155
container: {
155156
flexDirection: 'row',
156-
height: 32 + Constants.statusBarHeight
157+
height: TOP_BAR_HEIGHT
157158
},
158159
statusBar: {
159160
height: Constants.statusBarHeight

0 commit comments

Comments
 (0)