chore: fix formatting and snapshot tests

This commit is contained in:
Satyajit Sahoo
2019-03-01 13:32:54 +01:00
parent cbca7df4b5
commit 8ed859035f
5 changed files with 15 additions and 9 deletions

View File

@@ -3,6 +3,12 @@
"plugins": ["react-native-globals"],
"settings": {
"react": {
"version": "detect"
},
},
"env": {
"es6": true,
"react-native-globals/all": true,

View File

@@ -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]}

View File

@@ -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]}

View File

@@ -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) {

View File

@@ -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 = {