@ramses-superapp/ramses-ui
Version:
Skinless UI primitives for Ramses Built Apps
42 lines (41 loc) • 969 B
JavaScript
;
import { forwardRef } from 'react';
import { TextInput, View } from 'react-native';
import { jsx as _jsx } from "react/jsx-runtime";
const RsTextInput = /*#__PURE__*/forwardRef(({
value,
onChangeText,
placeholder,
secureTextEntry,
multiline,
maxLength,
keyboardType,
autoCapitalize,
style,
textStyle,
editable,
onFocus,
onBlur
}, ref) => {
return /*#__PURE__*/_jsx(View, {
style: style,
children: /*#__PURE__*/_jsx(TextInput, {
ref: ref,
value: value,
onChangeText: onChangeText,
placeholder: placeholder,
secureTextEntry: secureTextEntry,
multiline: multiline,
maxLength: maxLength,
keyboardType: keyboardType,
autoCapitalize: autoCapitalize,
style: textStyle,
editable: editable,
onFocus: onFocus,
onBlur: onBlur
})
});
});
RsTextInput.displayName = 'RsTextInput';
export default RsTextInput;
//# sourceMappingURL=RsTextInput.js.map