This commit is contained in:
Violet Caulfield
2024-11-23 20:21:25 -06:00
parent 09c5073d78
commit cac4b40641
2 changed files with 7 additions and 3 deletions

View File

@@ -72,7 +72,9 @@ export default function ServerAddress(): React.JSX.Element {
<Input
value={serverAddress}
placeholder="jellyfin.org"
onChangeText={setServerAddress} />
onChangeText={setServerAddress}
width={300}
/>
</XStack>
<Button
disabled={_.isEmpty(serverAddress)}

View File

@@ -1,11 +1,13 @@
import React, { SetStateAction } from 'react';
import { Input as TamaguiInput} from 'tamagui';
import { StyleProp } from 'react-native';
import { Input as TamaguiInput, TextStyle} from 'tamagui';
interface InputProps {
onChangeText: React.Dispatch<SetStateAction<string | undefined>>,
placeholder: string
value: string | undefined;
secureTextEntry?: boolean | undefined;
width?: number | undefined
}
export default function Input(props: InputProps): React.JSX.Element {
@@ -15,7 +17,7 @@ export default function Input(props: InputProps): React.JSX.Element {
placeholder={props.placeholder}
onChangeText={props.onChangeText}
value={props.value}
minWidth={300}
width={props.width}
secureTextEntry={props.secureTextEntry}
/>
)