mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 13:25:51 +08:00
NavigatorIOS navigationBarHidden property support
Summary:
Usage example:
```javascript
var AwesomeProject = React.createClass({
render: function() {
return (
<NavigatorIOS
style={styles.navigator}
navigationBarHidden={true}
initialRoute={{
component: Example,
title: 'Test'
}}
/>
);
}
});
```
Closes https://github.com/facebook/react-native/pull/374
Github Author: Kureev Alexey <kureev-mail@ya.ru>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
@@ -65,7 +65,10 @@
|
||||
if ([self.parentViewController isKindOfClass:[UINavigationController class]])
|
||||
{
|
||||
|
||||
[self.navigationController setNavigationBarHidden:!_navItem animated:animated];
|
||||
[self.navigationController
|
||||
setNavigationBarHidden:_navItem.navigationBarHidden
|
||||
animated:animated];
|
||||
|
||||
if (!_navItem) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user