diff options
author | João Ferreiro <ferreiro@pinkroom.dev> | 2022-12-14 17:53:26 +0000 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-19 19:20:44 -0600 |
commit | 70f4debc0b27cc5245cceaede2a50ec03c1d67d5 (patch) | |
tree | b5c00dbc38c47f67f33456cd06713ef7d349155f /src/view/com/modals/ServerInput.tsx | |
parent | 0a3e7e63b261e2df3b4832cff9e73afd90dc0d84 (diff) | |
download | voidsky-70f4debc0b27cc5245cceaede2a50ec03c1d67d5.tar.zst |
initial android fixes
Diffstat (limited to 'src/view/com/modals/ServerInput.tsx')
-rw-r--r-- | src/view/com/modals/ServerInput.tsx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/view/com/modals/ServerInput.tsx b/src/view/com/modals/ServerInput.tsx index c885ff164..15632ba39 100644 --- a/src/view/com/modals/ServerInput.tsx +++ b/src/view/com/modals/ServerInput.tsx @@ -1,5 +1,5 @@ import React, {useState} from 'react' -import {StyleSheet, Text, TextInput, TouchableOpacity, View} from 'react-native' +import {Platform, StyleSheet, Text, TouchableOpacity, View} from 'react-native' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {BottomSheetScrollView, BottomSheetTextInput} from '@gorhom/bottom-sheet' import {useStores} from '../../../state' @@ -76,7 +76,7 @@ export function Component({ onPress={() => doSelect(customUrl)}> <FontAwesomeIcon icon="check" - style={[s.black, {position: 'relative', top: 2}]} + style={[s.black, styles.checkIcon]} size={18} /> </TouchableOpacity> @@ -133,4 +133,15 @@ const styles = StyleSheet.create({ fontWeight: '500', color: colors.white, }, + checkIcon: { + position: 'relative', + ...Platform.select({ + android: { + top: 8, + }, + ios: { + top: 2, + }, + }), + }, }) |