@hexar/biometric-identity-sdk-react-native 1.15.0 → 1.16.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfilePictureCapture.d.ts","sourceRoot":"","sources":["../../src/components/ProfilePictureCapture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ProfilePictureCapture.d.ts","sourceRoot":"","sources":["../../src/components/ProfilePictureCapture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAaxE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAmC,cAAc,EAAsB,MAAM,oCAAoC,CAAC;AAGzJ,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,CAAC,MAAM,EAAE,8BAA8B,KAAK,IAAI,CAAC;IAC7D,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAuZtE,CAAC;AA4EF,eAAe,qBAAqB,CAAC"}
|
|
@@ -172,10 +172,11 @@ const ProfilePictureCapture = ({ onComplete, onError, onCancel, theme, language,
|
|
|
172
172
|
hasStartedAnimation.current = true;
|
|
173
173
|
animatedProgress.setValue(0);
|
|
174
174
|
setDisplayProgress(0);
|
|
175
|
-
//
|
|
175
|
+
// Steady linear fill to 90% over 35 seconds — feels like real progress
|
|
176
176
|
animationRef.current = react_native_1.Animated.timing(animatedProgress, {
|
|
177
|
-
toValue:
|
|
178
|
-
duration:
|
|
177
|
+
toValue: 90,
|
|
178
|
+
duration: 35000,
|
|
179
|
+
easing: react_native_1.Easing.linear,
|
|
179
180
|
useNativeDriver: false,
|
|
180
181
|
});
|
|
181
182
|
animationRef.current.start();
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
ActivityIndicator,
|
|
7
7
|
SafeAreaView,
|
|
8
8
|
Animated,
|
|
9
|
+
Easing,
|
|
9
10
|
TouchableOpacity,
|
|
10
11
|
} from 'react-native';
|
|
11
12
|
import { VideoRecorder, VideoRecordingResult } from './VideoRecorder';
|
|
@@ -185,10 +186,11 @@ export const ProfilePictureCapture: React.FC<ProfilePictureCaptureProps> = ({
|
|
|
185
186
|
animatedProgress.setValue(0);
|
|
186
187
|
setDisplayProgress(0);
|
|
187
188
|
|
|
188
|
-
//
|
|
189
|
+
// Steady linear fill to 90% over 35 seconds — feels like real progress
|
|
189
190
|
animationRef.current = Animated.timing(animatedProgress, {
|
|
190
|
-
toValue:
|
|
191
|
-
duration:
|
|
191
|
+
toValue: 90,
|
|
192
|
+
duration: 35000,
|
|
193
|
+
easing: Easing.linear,
|
|
192
194
|
useNativeDriver: false,
|
|
193
195
|
});
|
|
194
196
|
|