Fixed proximo search field on IOS

This commit is contained in:
keplyx 2020-03-10 21:26:14 +01:00
parent c7dfbe50e6
commit ef37ed629f

View file

@ -1,7 +1,7 @@
// @flow // @flow
import * as React from 'react'; import * as React from 'react';
import {FlatList, Image, ScrollView, View} from "react-native"; import {Platform, Image, ScrollView, View} from "react-native";
import i18n from "i18n-js"; import i18n from "i18n-js";
import CustomModal from "../../components/CustomModal"; import CustomModal from "../../components/CustomModal";
import {Avatar, IconButton, List, RadioButton, Searchbar, Subheading, Text, Title, withTheme} from "react-native-paper"; import {Avatar, IconButton, List, RadioButton, Searchbar, Subheading, Text, Title, withTheme} from "react-native-paper";
@ -85,7 +85,10 @@ class ProximoListScreen extends React.Component<Props, State> {
this.props.navigation.setOptions({ this.props.navigation.setOptions({
headerRight: button, headerRight: button,
headerTitle: title, headerTitle: title,
headerTitleContainerStyle: {marginHorizontal: 0, right: 50, left: 50}, headerBackTitleVisible: false,
headerTitleContainerStyle: Platform.OS === 'ios' ?
{marginHorizontal: 0, width: '70%'} :
{marginHorizontal: 0, right: 50, left: 50},
}); });
} }