mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-07 09:17:55 +08:00
revert D2928371 to unbreak drawer.
Reviewed By: furdei Differential Revision: D2962152 fb-gh-sync-id: ca185efa1b93a905e3ee7ca1c2eb6cc612febdf2 shipit-source-id: ca185efa1b93a905e3ee7ca1c2eb6cc612febdf2
This commit is contained in:
committed by
facebook-github-bot-6
parent
e0019f69c1
commit
0513d3abb5
@@ -73,8 +73,8 @@ var AppContainer = React.createClass({
|
||||
return;
|
||||
}
|
||||
|
||||
this.refs.accessibilityWrapper.setNativeProps({
|
||||
importantForAccessibility: modalVisible ? 'no-hide-descendants' : 'auto',
|
||||
this.setState({
|
||||
rootImportanceForAccessibility: modalVisible ? 'no-hide-descendants' : 'auto',
|
||||
});
|
||||
},
|
||||
|
||||
@@ -85,14 +85,10 @@ var AppContainer = React.createClass({
|
||||
ref="main"
|
||||
collapsable={!this.state.inspectorVisible}
|
||||
style={styles.appContainer}>
|
||||
<View
|
||||
ref="accessibilityWrapper"
|
||||
collapsable={true}
|
||||
style={styles.appContainer}>
|
||||
<RootComponent
|
||||
{...this.props.initialProps}
|
||||
rootTag={this.props.rootTag}/>
|
||||
</View>
|
||||
<RootComponent
|
||||
{...this.props.initialProps}
|
||||
rootTag={this.props.rootTag}
|
||||
importantForAccessibility={this.state.rootImportanceForAccessibility}/>
|
||||
<Portal
|
||||
onModalVisibilityChanged={this.setRootAccessibility}/>
|
||||
</View>;
|
||||
|
||||
Reference in New Issue
Block a user