Don't fade the back image on Android, use transparent background color
This commit is contained in:
parent
b96d1fd9d6
commit
bed05879e4
|
@ -1,4 +1,4 @@
|
||||||
import React } from 'react';
|
import React from 'react';
|
||||||
import { StyleSheet, View, Text } from 'react-native';
|
import { StyleSheet, View, Text } from 'react-native';
|
||||||
import { createStackNavigator } from 'react-navigation-stack';
|
import { createStackNavigator } from 'react-navigation-stack';
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ class HeaderBackButton extends React.PureComponent {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return <BackImage {...props} />;
|
return <BackImage {...props} fadeDuration={0} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
_getTitleText = () => {
|
_getTitleText = () => {
|
||||||
|
@ -146,6 +146,7 @@ const styles = StyleSheet.create({
|
||||||
icon:
|
icon:
|
||||||
Platform.OS === 'ios'
|
Platform.OS === 'ios'
|
||||||
? {
|
? {
|
||||||
|
backgroundColor: 'transparent',
|
||||||
height: 21,
|
height: 21,
|
||||||
width: 13,
|
width: 13,
|
||||||
marginLeft: 9,
|
marginLeft: 9,
|
||||||
|
@ -159,6 +160,7 @@ const styles = StyleSheet.create({
|
||||||
width: 24,
|
width: 24,
|
||||||
margin: 3,
|
margin: 3,
|
||||||
resizeMode: 'contain',
|
resizeMode: 'contain',
|
||||||
|
backgroundColor: 'transparent',
|
||||||
transform: [{ scaleX: I18nManager.isRTL ? -1 : 1 }],
|
transform: [{ scaleX: I18nManager.isRTL ? -1 : 1 }],
|
||||||
},
|
},
|
||||||
iconWithTitle:
|
iconWithTitle:
|
||||||
|
|
Loading…
Reference in New Issue