esbenp / react-native-clean-form

Easy react-native forms using bootstrap-like syntax with redux-form+immutablejs integration. Styled using styled-components
http://esbenp.github.io/2017/01/06/react-native-redux-form-immutable-styled-components/
MIT License
478 stars 83 forks source link

Using Keyboard Types and Other Input Properties. #4

Closed indivisable closed 7 years ago

indivisable commented 7 years ago

@esbenp I am trying to use keybaordType prop but it does not seem to pass through to the TextInput, any ideas?

In Form.js

<Input inlineLabel={false} name="telephone" label="Phone" placeholder="321-555-9292" keyboardType="numeric" />

In Input.js

  <StyledInput
      inlineLabel={props.inlineLabel}
      keyboardType={props.keyboardType}
      placeholderTextColor={props.theme.BaseInput.placeholderColor}
      style={{marginTop:9}}
      {...props}
    />

Would be great to pass these through so we can use the other InputText Props