Browse Source

Fixed proximo search field on IOS

keplyx 4 years ago
parent
commit
ef37ed629f
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      screens/Proximo/ProximoListScreen.js

+ 5
- 2
screens/Proximo/ProximoListScreen.js View File

@@ -1,7 +1,7 @@
1 1
 // @flow
2 2
 
3 3
 import * as React from 'react';
4
-import {FlatList, Image, ScrollView, View} from "react-native";
4
+import {Platform, Image, ScrollView, View} from "react-native";
5 5
 import i18n from "i18n-js";
6 6
 import CustomModal from "../../components/CustomModal";
7 7
 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> {
85 85
         this.props.navigation.setOptions({
86 86
             headerRight: button,
87 87
             headerTitle: title,
88
-            headerTitleContainerStyle: {marginHorizontal: 0, right: 50, left: 50},
88
+            headerBackTitleVisible: false,
89
+            headerTitleContainerStyle: Platform.OS === 'ios' ?
90
+                {marginHorizontal: 0, width: '70%'} :
91
+                {marginHorizontal: 0, right: 50, left: 50},
89 92
         });
90 93
     }
91 94
 

Loading…
Cancel
Save