Skip to content

Commit

Permalink
Fix Android Modal status bar translucency bug
Browse files Browse the repository at this point in the history
This fixes the longstanding issue highlighted at this issue: facebook#7474

A janky postinstall fix making this exact change is quite popular on NPM, demonstrating that there's a clear need for this (see https://www.npmjs.com/package/react-native-modal-translucent)
  • Loading branch information
scottmas authored Jan 24, 2019
1 parent 4936d28 commit ae9210b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const PropTypes = require('prop-types');
const StyleSheet = require('StyleSheet');
const View = require('View');

const RCTModalHostView = require('RCTModalHostViewNativeComponent');
const RCTModalHostView = Platform.OS === 'ios' ? requireNativeComponent('RCTModalHostView') : requireNativeComponent('TranslucentModalHostView');

const ModalEventEmitter =
Platform.OS === 'ios' && NativeModules.ModalManager
Expand Down

0 comments on commit ae9210b

Please sign in to comment.