Skip to content

Commit

Permalink
feat: add a disabled text input in second screen for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rlemasquerier committed Jan 4, 2024
1 parent 62eced0 commit 768e3e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions example/src/components/TextInput.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import React from 'react';
import { TextInput as RNTextInput, StyleSheet, View } from 'react-native';
import {
TextInput as RNTextInput,
StyleSheet,
View,
type TextInputProps,
} from 'react-native';

export const TextInput = () => {
export const TextInput = (props: TextInputProps) => {
return (
<View style={styles.container}>
<RNTextInput
style={styles.inputStyle}
placeholder="type something here"
{...props}
/>
</View>
);
Expand Down
1 change: 1 addition & 0 deletions example/src/screens/SecondScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const SecondScreen = () => {
additionalScrollHeight={20}
>
<ContentCard />
<TextInput editable={false} placeholder="this one is disabled" />
<ContentCard />
<TextInput />
<ContentCard />
Expand Down

0 comments on commit 768e3e8

Please sign in to comment.