From ef37ed629fe121c52a9741cff0785712ef3127dc Mon Sep 17 00:00:00 2001 From: keplyx Date: Tue, 10 Mar 2020 21:26:14 +0100 Subject: [PATCH] Fixed proximo search field on IOS --- screens/Proximo/ProximoListScreen.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/screens/Proximo/ProximoListScreen.js b/screens/Proximo/ProximoListScreen.js index 2c94575..842fda0 100644 --- a/screens/Proximo/ProximoListScreen.js +++ b/screens/Proximo/ProximoListScreen.js @@ -1,7 +1,7 @@ // @flow 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 CustomModal from "../../components/CustomModal"; import {Avatar, IconButton, List, RadioButton, Searchbar, Subheading, Text, Title, withTheme} from "react-native-paper"; @@ -85,7 +85,10 @@ class ProximoListScreen extends React.Component { this.props.navigation.setOptions({ headerRight: button, 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}, }); }