mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-26 09:14:22 +08:00
chore: fix formatting and snapshot tests
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
|
||||
"plugins": ["react-native-globals"],
|
||||
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "detect"
|
||||
},
|
||||
},
|
||||
|
||||
"env": {
|
||||
"es6": true,
|
||||
"react-native-globals/all": true,
|
||||
|
||||
@@ -217,7 +217,6 @@ exports[`Nested navigators renders succesfully as direct child 1`] = `
|
||||
>
|
||||
<Text
|
||||
accessibilityTraits="header"
|
||||
accessible={false}
|
||||
allowFontScaling={true}
|
||||
numberOfLines={1}
|
||||
onLayout={[Function]}
|
||||
@@ -321,7 +320,6 @@ exports[`Nested navigators renders succesfully as direct child 1`] = `
|
||||
>
|
||||
<Text
|
||||
accessibilityTraits="header"
|
||||
accessible={false}
|
||||
allowFontScaling={true}
|
||||
numberOfLines={1}
|
||||
onLayout={[Function]}
|
||||
|
||||
@@ -150,7 +150,6 @@ exports[`StackNavigator applies correct values when headerRight is present 1`] =
|
||||
>
|
||||
<Text
|
||||
accessibilityTraits="header"
|
||||
accessible={false}
|
||||
allowFontScaling={true}
|
||||
numberOfLines={1}
|
||||
onLayout={[Function]}
|
||||
@@ -344,7 +343,6 @@ exports[`StackNavigator renders successfully 1`] = `
|
||||
>
|
||||
<Text
|
||||
accessibilityTraits="header"
|
||||
accessible={false}
|
||||
allowFontScaling={true}
|
||||
numberOfLines={1}
|
||||
onLayout={[Function]}
|
||||
|
||||
@@ -79,7 +79,12 @@ class HeaderBackButton extends React.PureComponent {
|
||||
};
|
||||
|
||||
_maybeRenderTitle() {
|
||||
const { allowFontScaling, backTitleVisible, titleStyle, tintColor } = this.props;
|
||||
const {
|
||||
allowFontScaling,
|
||||
backTitleVisible,
|
||||
titleStyle,
|
||||
tintColor,
|
||||
} = this.props;
|
||||
let backTitleText = this._getTitleText();
|
||||
|
||||
if (!backTitleVisible || backTitleText === null) {
|
||||
|
||||
@@ -65,7 +65,6 @@ class Transitioner extends React.Component {
|
||||
this.state.position.removeListener(this._positionListener);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react/no-deprecated
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if (this._isTransitionRunning) {
|
||||
if (!this._queuedTransition) {
|
||||
@@ -178,9 +177,9 @@ class Transitioner extends React.Component {
|
||||
// get the transition spec.
|
||||
const transitionUserSpec = nextProps.configureTransition
|
||||
? nextProps.configureTransition(
|
||||
this._transitionProps,
|
||||
this._prevTransitionProps
|
||||
)
|
||||
this._transitionProps,
|
||||
this._prevTransitionProps
|
||||
)
|
||||
: null;
|
||||
|
||||
const transitionSpec = {
|
||||
|
||||
Reference in New Issue
Block a user