mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 03:56:03 +00:00
8/n Fix warnings at startup
Summary: public - Add missing required `key` prop for array of child components Reviewed By: zjj010104 Differential Revision: D2711271 fb-gh-sync-id: b9848abffd3c458cf45b1231be5eff0a5de805f1
This commit is contained in:
parent
c11dce36e6
commit
0571250521
@ -205,7 +205,10 @@ var NavigatorBreadcrumbNavigationBar = React.createClass({
|
|||||||
var firstStyles = initStyle(index, navStatePresentedIndex(this.props.navState));
|
var firstStyles = initStyle(index, navStatePresentedIndex(this.props.navState));
|
||||||
|
|
||||||
var breadcrumbDescriptor = (
|
var breadcrumbDescriptor = (
|
||||||
<View ref={'crumb_' + index} style={firstStyles.Crumb}>
|
<View
|
||||||
|
key={'crumb_' + index}
|
||||||
|
ref={'crumb_' + index}
|
||||||
|
style={firstStyles.Crumb}>
|
||||||
<View ref={'icon_' + index} style={firstStyles.Icon}>
|
<View ref={'icon_' + index} style={firstStyles.Icon}>
|
||||||
{navBarRouteMapper.iconForRoute(route, this.props.navigator)}
|
{navBarRouteMapper.iconForRoute(route, this.props.navigator)}
|
||||||
</View>
|
</View>
|
||||||
@ -231,7 +234,10 @@ var NavigatorBreadcrumbNavigationBar = React.createClass({
|
|||||||
var firstStyles = initStyle(index, navStatePresentedIndex(this.props.navState));
|
var firstStyles = initStyle(index, navStatePresentedIndex(this.props.navState));
|
||||||
|
|
||||||
var titleDescriptor = (
|
var titleDescriptor = (
|
||||||
<View ref={'title_' + index} style={firstStyles.Title}>
|
<View
|
||||||
|
key={'title_' + index}
|
||||||
|
ref={'title_' + index}
|
||||||
|
style={firstStyles.Title}>
|
||||||
{titleContent}
|
{titleContent}
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
@ -253,7 +259,10 @@ var NavigatorBreadcrumbNavigationBar = React.createClass({
|
|||||||
}
|
}
|
||||||
var firstStyles = initStyle(index, navStatePresentedIndex(this.props.navState));
|
var firstStyles = initStyle(index, navStatePresentedIndex(this.props.navState));
|
||||||
var rightButtonDescriptor = (
|
var rightButtonDescriptor = (
|
||||||
<View ref={'right_' + index} style={firstStyles.RightItem}>
|
<View
|
||||||
|
key={'right_' + index}
|
||||||
|
ref={'right_' + index}
|
||||||
|
style={firstStyles.RightItem}>
|
||||||
{rightContent}
|
{rightContent}
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user