react-native-boxes 1.3.27 → 1.3.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.3.27",
3
+ "version": "1.3.29",
4
4
  "description": "A react native library for rapid development of UI using boxes",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/Input.tsx CHANGED
@@ -85,7 +85,8 @@ export function CompositeTextInputView(props: TextInputProps & {
85
85
  initialText?: string,
86
86
  leftIcon?: 'edit' | string | React.Component,
87
87
  icon?: 'close' | 'eye' | string | React.Component,
88
- onIconPress?: ((event: GestureResponderEvent) => void) | undefined
88
+ onIconPress?: ((event: GestureResponderEvent) => void) | undefined,
89
+ textInputProps?: TextInputProps
89
90
  }) {
90
91
  const theme = useContext(ThemeContext)
91
92
  const [text, setText] = useState(props.initialText)
@@ -97,17 +98,11 @@ export function CompositeTextInputView(props: TextInputProps & {
97
98
  }
98
99
  const fontStyles: any = assignFields({}, props.style,
99
100
  [
100
- "numberOfLines",
101
- "returnKeyType",
102
- "keyboardType",
103
- "textContentType",
104
- "multiline",
105
101
  "fontFamily",
106
102
  "fontSize",
107
103
  "fontWeight",
108
104
  "fontVariant",
109
- "color",
110
- "inputMode"
105
+ "color"
111
106
  ])
112
107
  var hintVisible = false
113
108
  if (props.placeholder && props.placeholder.length > 0 && focused) {
@@ -226,6 +221,7 @@ export function CompositeTextInputView(props: TextInputProps & {
226
221
  } : {
227
222
 
228
223
  }, fontStyles]}
224
+ {...props.textInputProps}
229
225
  />
230
226
  {
231
227
  alertVisible && <TextView
package/src/Text.tsx CHANGED
@@ -64,4 +64,15 @@ export function Caption(props: TextProps) {
64
64
  props.style
65
65
  ]} />
66
66
  )
67
+ }
68
+
69
+ export function TitleText(props: TextProps) {
70
+ return (
71
+ <TextView {...props} style={[
72
+ {
73
+ fontWeight: '700'
74
+ },
75
+ props.style
76
+ ]} />
77
+ )
67
78
  }