Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

fix bug of NaN left style #36

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/NavigatorNavigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ class NavigatorNavigationBar extends React.Component {
var component = this._components[componentName].get(this.props.navState.routeStack[index]);
var props = this._getReusableProps(componentName, index);
if (component && interpolate[componentName](props.style, amount)) {
if (isNaN(props.style.left)) {
props.style.left = undefiend;
}

props.pointerEvents = props.style.opacity === 0 ? 'none' : 'box-none';
component.setNativeProps(props);
}
Expand Down