Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added RN props option, textInputProps to pass into text input. #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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