diff --git a/Libraries/ReactIOS/renderApplication.android.js b/Libraries/ReactIOS/renderApplication.android.js index 05b87178b..1abfeb8b3 100644 --- a/Libraries/ReactIOS/renderApplication.android.js +++ b/Libraries/ReactIOS/renderApplication.android.js @@ -73,8 +73,8 @@ var AppContainer = React.createClass({ return; } - this.setState({ - rootImportanceForAccessibility: modalVisible ? 'no-hide-descendants' : 'auto', + this.refs.accessibilityWrapper.setNativeProps({ + importantForAccessibility: modalVisible ? 'no-hide-descendants' : 'auto', }); }, @@ -85,10 +85,14 @@ var AppContainer = React.createClass({ ref="main" collapsable={!this.state.inspectorVisible} style={styles.appContainer}> - + + + ;