Merge pull request #103 from vonovak/fixCI

fix build errors
This commit is contained in:
Brent Vatne
2019-04-09 10:03:46 +02:00
parent c5640ea576
commit 42fb37bcd0
4 changed files with 9 additions and 6 deletions

View File

@@ -217,7 +217,7 @@ exports[`Nested navigators renders succesfully as direct child 1`] = `
>
<Text
accessibilityTraits="header"
allowFontScaling={true}
allowFontScaling={false}
numberOfLines={1}
onLayout={[Function]}
style={
@@ -320,7 +320,7 @@ exports[`Nested navigators renders succesfully as direct child 1`] = `
>
<Text
accessibilityTraits="header"
allowFontScaling={true}
allowFontScaling={false}
numberOfLines={1}
onLayout={[Function]}
style={

View File

@@ -150,7 +150,7 @@ exports[`StackNavigator applies correct values when headerRight is present 1`] =
>
<Text
accessibilityTraits="header"
allowFontScaling={true}
allowFontScaling={false}
numberOfLines={1}
onLayout={[Function]}
style={
@@ -343,7 +343,7 @@ exports[`StackNavigator renders successfully 1`] = `
>
<Text
accessibilityTraits="header"
allowFontScaling={true}
allowFontScaling={false}
numberOfLines={1}
onLayout={[Function]}
style={

View File

@@ -45,7 +45,10 @@ export default class BorderlessButton extends React.Component {
<AnimatedBaseButton
{...rest}
onActiveStateChange={this._onActiveStateChange}
style={[style, Platform.OS === 'ios' && enabled && { opacity: this._opacity }]}
style={[
style,
Platform.OS === 'ios' && enabled && { opacity: this._opacity },
]}
>
{children}
</AnimatedBaseButton>

View File

@@ -205,7 +205,7 @@ function forFade(props) {
};
}
function forNoAnimation(props) {
function forNoAnimation() {
return {};
}