Skip to content

Conversation

@dblock
Copy link

@dblock dblock commented Jul 16, 2018

Building on top of #49, but with a bit of README. This is very useful for all kinds of available text input properties, similar to switch properties. Some may very well be exposed on the parent component, but this is at least future proof and works for secureEntry or autoCapitalize right now.

text-input-props

                    <SettingsList.Item 
                      id='password' 
                      title='password' 
                      isEditable={true} 
                      hasNavArrow={false}
                      titleStyle={styles.settingsItemTitle}
                      textInputProps={{
                        autoCapitalize: 'none',
                        secureTextEntry: true
                      }}
                      onTextChange={(text) => this.setState({ 
                        user: { 
                          ...this.state.user,
                          password: text
                        },
                        dirty: true
                      })}
                    />

@dblock
Copy link
Author

dblock commented Aug 10, 2021

Anyone wants to merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants