@hero-design/rn 8.64.6-alpha.0 → 8.64.6-alpha.1
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/es/index.js +1 -2
- package/lib/index.js +1 -2
- package/package.json +1 -1
- package/src/components/PinInput/index.tsx +3 -3
package/es/index.js
CHANGED
|
@@ -15609,7 +15609,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
15609
15609
|
disabled: disabled,
|
|
15610
15610
|
error: error
|
|
15611
15611
|
});
|
|
15612
|
-
var maskedValueWithExtraSpace = !value ? '*' : value;
|
|
15612
|
+
var maskedValueWithExtraSpace = Platform.OS === 'android' && !value ? '*' : value;
|
|
15613
15613
|
var focus = useCallback(function () {
|
|
15614
15614
|
if (inputRef !== null && inputRef !== void 0 && inputRef.current) {
|
|
15615
15615
|
inputRef.current.focus();
|
|
@@ -15669,7 +15669,6 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
15669
15669
|
onFocus: focus,
|
|
15670
15670
|
onBlur: blur,
|
|
15671
15671
|
maxLength: length,
|
|
15672
|
-
caretHidden: true,
|
|
15673
15672
|
pointerEvents: "box-none",
|
|
15674
15673
|
keyboardType: "numeric",
|
|
15675
15674
|
testID: "pin-hidden-input",
|
package/lib/index.js
CHANGED
|
@@ -15639,7 +15639,7 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
15639
15639
|
disabled: disabled,
|
|
15640
15640
|
error: error
|
|
15641
15641
|
});
|
|
15642
|
-
var maskedValueWithExtraSpace = !value ? '*' : value;
|
|
15642
|
+
var maskedValueWithExtraSpace = reactNative.Platform.OS === 'android' && !value ? '*' : value;
|
|
15643
15643
|
var focus = React.useCallback(function () {
|
|
15644
15644
|
if (inputRef !== null && inputRef !== void 0 && inputRef.current) {
|
|
15645
15645
|
inputRef.current.focus();
|
|
@@ -15699,7 +15699,6 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
15699
15699
|
onFocus: focus,
|
|
15700
15700
|
onBlur: blur,
|
|
15701
15701
|
maxLength: length,
|
|
15702
|
-
caretHidden: true,
|
|
15703
15702
|
pointerEvents: "box-none",
|
|
15704
15703
|
keyboardType: "numeric",
|
|
15705
15704
|
testID: "pin-hidden-input",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import React, {
|
|
|
7
7
|
useRef,
|
|
8
8
|
useState,
|
|
9
9
|
} from 'react';
|
|
10
|
-
import { InteractionManager, TextInput } from 'react-native';
|
|
10
|
+
import { InteractionManager, Platform, TextInput } from 'react-native';
|
|
11
11
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
12
12
|
import Icon from '../Icon';
|
|
13
13
|
import PinCell from './PinCell';
|
|
@@ -121,7 +121,8 @@ const PinInput = forwardRef<PinInputHandler, PinInputProps>(
|
|
|
121
121
|
const inputRef = useRef<TextInput>(null);
|
|
122
122
|
const [focused, setFocused] = useState(autoFocus);
|
|
123
123
|
const state = getState({ disabled, error });
|
|
124
|
-
const maskedValueWithExtraSpace =
|
|
124
|
+
const maskedValueWithExtraSpace =
|
|
125
|
+
Platform.OS === 'android' && !value ? '*' : value;
|
|
125
126
|
|
|
126
127
|
const focus = useCallback(() => {
|
|
127
128
|
if (inputRef?.current) {
|
|
@@ -199,7 +200,6 @@ const PinInput = forwardRef<PinInputHandler, PinInputProps>(
|
|
|
199
200
|
onFocus={focus}
|
|
200
201
|
onBlur={blur}
|
|
201
202
|
maxLength={length}
|
|
202
|
-
caretHidden
|
|
203
203
|
pointerEvents="box-none"
|
|
204
204
|
keyboardType="numeric"
|
|
205
205
|
testID="pin-hidden-input"
|