@@ -3,14 +3,15 @@ import React, { useState, useRef, useCallback, useContext } from 'react';
33import type { Node } from 'react' ;
44import { TextInput , View } from 'react-native' ;
55import { useFocusEffect } from '@react-navigation/native' ;
6- import type { ViewStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet' ;
76
87import { ThemeContext , createStyleSheet , HALF_COLOR } from '../styles' ;
98
109const styles = createStyleSheet ( {
1110 wrapper : {
1211 flexDirection : 'row' ,
1312 opacity : 0.8 ,
13+ marginTop : 16 ,
14+ marginBottom : 8 ,
1415 } ,
1516 realmInput : {
1617 flex : 1 ,
@@ -20,13 +21,12 @@ const styles = createStyleSheet({
2021} ) ;
2122
2223type Props = $ReadOnly < { |
23- style ?: ViewStyleProp ,
2424 onChangeText : ( value : string ) => void ,
2525 onSubmitEditing : ( ) => Promise < void > ,
2626| } > ;
2727
2828export default function SmartUrlInput ( props : Props ) : Node {
29- const { style , onChangeText, onSubmitEditing } = props ;
29+ const { onChangeText, onSubmitEditing } = props ;
3030
3131 // We should replace the fixme with
3232 // `React$ElementRef<typeof TextInput>` when we can. Currently, that
@@ -67,7 +67,7 @@ export default function SmartUrlInput(props: Props): Node {
6767 ) ;
6868
6969 return (
70- < View style = { [ styles . wrapper , style ] } >
70+ < View style = { styles . wrapper } >
7171 < TextInput
7272 value = { value }
7373 placeholder = "your-org.zulipchat.com"
0 commit comments