File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
packages/react-native/Libraries
scripts/build/build-types Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ export {default as Node} from './nodes/AnimatedNode';
24
24
export {default as Value} from './nodes/AnimatedValue';
25
25
export {default as ValueXY} from './nodes/AnimatedValueXY';
26
26
27
+ export type {AnimatedValueConfig as AnimatedConfig} from './nodes/AnimatedValue';
28
+
27
29
export const add = AnimatedImplementation.add;
28
30
export const attachNativeEvent = AnimatedImplementation.attachNativeEvent;
29
31
export const createAnimatedComponent =
Original file line number Diff line number Diff line change 8
8
* @format
9
9
*/
10
10
11
- import type { AnimatedValueConfig } from './nodes/AnimatedValue' ;
12
-
13
11
import Animated from './Animated' ;
14
12
import { useRef } from 'react' ;
15
13
16
14
export default function useAnimatedValue (
17
15
initialValue : number ,
18
- config ?: ?AnimatedValueConfig ,
16
+ config ?: ?Animated . AnimatedConfig ,
19
17
) : Animated . Value {
20
18
const ref = useRef < null | Animated . Value > ( null ) ;
21
19
if ( ref . current == null ) {
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ export { default as Interpolation } from \\"./nodes/AnimatedInterpolation\\";
172
172
export { default as Node } from \\"./nodes/AnimatedNode\\";
173
173
export { default as Value } from \\"./nodes/AnimatedValue\\";
174
174
export { default as ValueXY } from \\"./nodes/AnimatedValueXY\\";
175
+ export type { AnimatedValueConfig as AnimatedConfig } from \\"./nodes/AnimatedValue\\";
175
176
declare export const add: $FlowFixMe;
176
177
declare export const attachNativeEvent: $FlowFixMe;
177
178
declare export const createAnimatedComponent: $FlowFixMe;
@@ -1006,7 +1007,7 @@ exports[`public API should not change unintentionally Libraries/Animated/useAnim
1006
1007
exports[`public API should not change unintentionally Libraries/Animated/useAnimatedValue.js 1`] = `
1007
1008
"declare export default function useAnimatedValue(
1008
1009
initialValue: number,
1009
- config?: ?AnimatedValueConfig
1010
+ config?: ?Animated.AnimatedConfig
1010
1011
): Animated.Value;
1011
1012
"
1012
1013
`;
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ const ENTRY_POINTS = [
29
29
'packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js' ,
30
30
'packages/react-native/Libraries/Alert/Alert.js' ,
31
31
'packages/react-native/Libraries/Animated/Animated.js' ,
32
+ 'packages/react-native/Libraries/Animated/useAnimatedValue.js' ,
32
33
'packages/react-native/Libraries/AppState/AppState.js' ,
33
34
'packages/react-native/Libraries/BatchedBridge/NativeModules.js' ,
34
35
'packages/react-native/Libraries/Blob/Blob.js' ,
You can’t perform that action at this time.
0 commit comments