@codeleap/mobile 1.9.20 → 1.9.23
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
|
@@ -146,7 +146,7 @@ export const FileInput = forwardRef<
|
|
|
146
146
|
ImageCropPicker[call]({ ...mergedOptions, ...(options || {}) }).then(handlePickerResolution)
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
const openFilePicker = async (imageSource) => {
|
|
149
|
+
const openFilePicker = async (imageSource = null) => {
|
|
150
150
|
if (type === 'image') {
|
|
151
151
|
if (imageSource === 'camera') {
|
|
152
152
|
onPress('camera')
|
|
@@ -189,7 +189,9 @@ export const TextInput = forwardRef<NativeTextInput, TextInputProps>((rawprops,
|
|
|
189
189
|
selectionColor={StyleSheet.flatten(getStyles('selection'))?.color}
|
|
190
190
|
includeRawValueInChangeText={true}
|
|
191
191
|
{...props}
|
|
192
|
-
{...(masking ? { onChangeText: handleMaskChange, type: masking?.type
|
|
192
|
+
{...(masking ? { onChangeText: handleMaskChange, type: masking?.type, refInput: (inputRef) => {
|
|
193
|
+
input.current = inputRef
|
|
194
|
+
} } : {})}
|
|
193
195
|
style={getStyles('textField')}
|
|
194
196
|
/>
|
|
195
197
|
{
|
|
@@ -41,13 +41,11 @@ export const Touchable: React.FC<TouchableProps> = forwardRef<
|
|
|
41
41
|
variants,
|
|
42
42
|
})
|
|
43
43
|
|
|
44
|
-
const { logger
|
|
44
|
+
const { logger } = useCodeleapContext()
|
|
45
45
|
const press = () => {
|
|
46
46
|
if (!onPress) { throw { message: 'No onPress passed to touchable', touchableProps } }
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
activeLogger.log(
|
|
48
|
+
logger.log(
|
|
51
49
|
`<${debugComponent || 'Touchable'}/> pressed`,
|
|
52
50
|
debugName || variants,
|
|
53
51
|
'User interaction',
|