Skip to content

Commit d51ab27

Browse files
authored
Merge pull request #1 from fuhexu/fix_left_NaN
fix a case passing NaN down to native level
2 parents d5201e5 + 90a8b21 commit d51ab27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/NavigatorNavigationBar.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ class NavigatorNavigationBar extends React.Component {
140140
var component = this._components[componentName].get(this.props.navState.routeStack[index]);
141141
var props = this._getReusableProps(componentName, index);
142142
if (component && interpolate[componentName](props.style, amount)) {
143+
if (Number.isFinite(props.style.left)) {
144+
delete props.style.left;
145+
}
143146
props.pointerEvents = props.style.opacity === 0 ? 'none' : 'box-none';
144147
component.setNativeProps(props);
145148
}

0 commit comments

Comments
 (0)