Skip to content

Commit

Permalink
fix(router-rn): 增加rn 头部返回按钮点击区域
Browse files Browse the repository at this point in the history
  • Loading branch information
yechunxi authored and zhiqingchen committed Apr 16, 2021
1 parent c84fcb4 commit f7a4501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-router-rn/src/view/BackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class BackButton extends React.PureComponent<BackButtonProps> {
const { tintColor = '#ffffff' } = this.props
const color = tintColor.toLowerCase()
const imageSource = (color === '#ffffff' || color === 'white' || color === '#fff') ? whiteArrow : blackArrow
return <View style={{ marginHorizontal: Platform.OS === 'ios' ? 8 : 0 }}>
return <View style={{ marginHorizontal: Platform.OS === 'ios' ? 10 : 0, marginRight: 25, marginVertical: 10 }}>
<Image
style={{ width: 22, height: 22 }}
source={{ uri: imageSource }}
Expand Down

0 comments on commit f7a4501

Please sign in to comment.