mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-13 09:39:18 +08:00
Fix lint errors and tests
This commit is contained in:
@@ -63,6 +63,4 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
});
|
||||
|
||||
Card = createPointerEventsContainer(Card);
|
||||
|
||||
export default Card;
|
||||
export default createPointerEventsContainer(Card);
|
||||
|
||||
@@ -153,12 +153,7 @@ class StackViewLayout extends React.Component {
|
||||
headerRightInterpolator,
|
||||
} = this._getTransitionConfig();
|
||||
|
||||
const {
|
||||
mode,
|
||||
transitionProps,
|
||||
lastTransitionProps,
|
||||
...passProps
|
||||
} = this.props;
|
||||
const { transitionProps, ...passProps } = this.props;
|
||||
|
||||
return (
|
||||
<NavigationProvider value={scene.descriptor.navigation}>
|
||||
@@ -178,7 +173,6 @@ class StackViewLayout extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
_animatedSubscribe(props) {
|
||||
// Hack to make this work with native driven animations. We add a single listener
|
||||
// so the JS value of the following animated values gets updated. We rely on
|
||||
@@ -451,7 +445,6 @@ class StackViewLayout extends React.Component {
|
||||
}
|
||||
const {
|
||||
transitionProps: { scene, scenes },
|
||||
mode,
|
||||
} = this.props;
|
||||
const { options } = scene.descriptor;
|
||||
|
||||
@@ -554,7 +547,7 @@ class StackViewLayout extends React.Component {
|
||||
}
|
||||
|
||||
_renderInnerScene(scene) {
|
||||
const { options, navigation, getComponent } = scene.descriptor;
|
||||
const { navigation, getComponent } = scene.descriptor;
|
||||
const SceneComponent = getComponent();
|
||||
|
||||
const { screenProps } = this.props;
|
||||
|
||||
Reference in New Issue
Block a user