Skip to content

Commit

Permalink
refactor: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak committed Jun 19, 2023
1 parent 35ac181 commit 7da5a17
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions example/src/Examples/TextInputExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ const TextInputExample = () => {
}}
/>
}
right={<TextInput.Affix text="/100" />}
maxLength={100}
right={<TextInput.Affix text={`${text.length}/100`} />}
/>
<TextInput
style={styles.inputContainerStyle}
Expand All @@ -182,7 +183,8 @@ const TextInputExample = () => {
onChangeText={(text) =>
inputActionHandler('customIconText', text)
}
right={<TextInput.Affix text="/100" />}
maxLength={100}
right={<TextInput.Affix text={`${customIconText.length}/100`} />}
left={
<TextInput.Icon
icon={() => (
Expand Down Expand Up @@ -259,7 +261,8 @@ const TextInputExample = () => {
}}
/>
}
right={<TextInput.Affix text="/100" />}
maxLength={100}
right={<TextInput.Affix text={`${outlinedText.length}/100`} />}
/>
<TextInput
mode="outlined"
Expand Down Expand Up @@ -619,6 +622,7 @@ const TextInputExample = () => {
<TextInput
label="Input with text align center"
style={styles.centeredText}
activeUnderlineColor="transparent"
/>
</View>
<View style={styles.inputContainerStyle}>
Expand Down

0 comments on commit 7da5a17

Please sign in to comment.