Don't fade the back image on Android, use transparent background color

This commit is contained in:
Brent Vatne 2018-11-03 14:13:32 -07:00
parent b96d1fd9d6
commit bed05879e4
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import React } from 'react';
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { createStackNavigator } from 'react-navigation-stack';

View File

@ -59,7 +59,7 @@ class HeaderBackButton extends React.PureComponent {
};
}
return <BackImage {...props} />;
return <BackImage {...props} fadeDuration={0} />;
}
_getTitleText = () => {
@ -146,6 +146,7 @@ const styles = StyleSheet.create({
icon:
Platform.OS === 'ios'
? {
backgroundColor: 'transparent',
height: 21,
width: 13,
marginLeft: 9,
@ -159,6 +160,7 @@ const styles = StyleSheet.create({
width: 24,
margin: 3,
resizeMode: 'contain',
backgroundColor: 'transparent',
transform: [{ scaleX: I18nManager.isRTL ? -1 : 1 }],
},
iconWithTitle: