Fixed ios style
This commit is contained in:
parent
0267ff70ce
commit
f617dba1e6
2 changed files with 3 additions and 6 deletions
|
@ -1,10 +1,9 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {Image, View} from "react-native";
|
import {Image, Platform, View} from "react-native";
|
||||||
import {FAB, withTheme} from 'react-native-paper';
|
import {FAB, TouchableRipple, withTheme} from 'react-native-paper';
|
||||||
import * as Animatable from "react-native-animatable";
|
import * as Animatable from "react-native-animatable";
|
||||||
import TouchableRipple from "react-native-paper/src/components/TouchableRipple/index";
|
|
||||||
import CustomTabBar from "./CustomTabBar";
|
import CustomTabBar from "./CustomTabBar";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
@ -76,8 +75,7 @@ class TabHomeIcon extends React.Component<Props> {
|
||||||
onPress={props.onPress}
|
onPress={props.onPress}
|
||||||
onLongPress={props.onLongPress}
|
onLongPress={props.onLongPress}
|
||||||
borderless={true}
|
borderless={true}
|
||||||
rippleColor={this.props.theme.colors.primary}
|
rippleColor={Platform.OS === 'android' ? this.props.theme.colors.primary : 'transparent'}
|
||||||
underlayColor={this.props.theme.colors.primary}
|
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
|
|
|
@ -71,7 +71,6 @@ class TabIcon extends React.Component<Props> {
|
||||||
onLongPress={props.onLongPress}
|
onLongPress={props.onLongPress}
|
||||||
borderless={true}
|
borderless={true}
|
||||||
rippleColor={this.props.theme.colors.primary}
|
rippleColor={this.props.theme.colors.primary}
|
||||||
underlayColor={this.props.theme.colors.primary}
|
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
|
Loading…
Reference in a new issue