0.0.2 • Published 7 years ago

react-native-input-xg v0.0.2

Weekly downloads
201
License
MIT
Repository
github
Last release
7 years ago

The react-native-input-xg

  • react native Input component for both Android and iOS based on pure JavaScript

Main

  • This component provide some more functions besides the basic input RN provided

Properties

  • Besides the basic properties RN provided, we also provide belows:

image

Properties

PropDefaultTypeDescription
labelundefinedstringSpecify the label of the input
defaultValueundefinedstringSpecify the default value of the input
editabletrueboolif you can edit the input
multilinefalseboolif the input support the multiline
errorfalseboolfor you to judge if the content is wrong
requiredfalseboolgive you an indicate to show this one is a must
tipsundefinedstringgive some more explanation
wrapperStyle-styleSpecify the wrapper style
focusStyle-styleSpecify the style when focus
disabledStyle-styleSpecify the style when disabled
errorStyle-styleSpecify the style when there's some error
labelStyle-styleSpecify the label style
initJudgetrueboolif judge error when init
readOnlyfalseboolyou can only see but can not operate