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';
2424export {default as Value} from './nodes/AnimatedValue';
2525export {default as ValueXY} from './nodes/AnimatedValueXY';
2626
27+ export type {AnimatedValueConfig as AnimatedConfig} from './nodes/AnimatedValue';
28+
2729export const add = AnimatedImplementation.add;
2830export const attachNativeEvent = AnimatedImplementation.attachNativeEvent;
2931export const createAnimatedComponent =
Original file line number Diff line number Diff line change 88 * @format
99 */
1010
11- import type { AnimatedValueConfig } from './nodes/AnimatedValue' ;
12-
1311import Animated from './Animated' ;
1412import { useRef } from 'react' ;
1513
1614export default function useAnimatedValue (
1715 initialValue : number ,
18- config ?: ?AnimatedValueConfig ,
16+ config ?: ?Animated . AnimatedConfig ,
1917) : Animated . Value {
2018 const ref = useRef < null | Animated . Value > ( null ) ;
2119 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\\";
172172export { default as Node } from \\"./nodes/AnimatedNode\\";
173173export { default as Value } from \\"./nodes/AnimatedValue\\";
174174export { default as ValueXY } from \\"./nodes/AnimatedValueXY\\";
175+ export type { AnimatedValueConfig as AnimatedConfig } from \\"./nodes/AnimatedValue\\";
175176declare export const add: $FlowFixMe;
176177declare export const attachNativeEvent: $FlowFixMe;
177178declare export const createAnimatedComponent: $FlowFixMe;
@@ -1006,7 +1007,7 @@ exports[`public API should not change unintentionally Libraries/Animated/useAnim
10061007exports[`public API should not change unintentionally Libraries/Animated/useAnimatedValue.js 1`] = `
10071008"declare export default function useAnimatedValue(
10081009 initialValue: number,
1009- config?: ?AnimatedValueConfig
1010+ config?: ?Animated.AnimatedConfig
10101011): Animated.Value;
10111012"
10121013`;
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ const ENTRY_POINTS = [
2929 'packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js' ,
3030 'packages/react-native/Libraries/Alert/Alert.js' ,
3131 'packages/react-native/Libraries/Animated/Animated.js' ,
32+ 'packages/react-native/Libraries/Animated/useAnimatedValue.js' ,
3233 'packages/react-native/Libraries/AppState/AppState.js' ,
3334 'packages/react-native/Libraries/BatchedBridge/NativeModules.js' ,
3435 'packages/react-native/Libraries/Blob/Blob.js' ,
You can’t perform that action at this time.
0 commit comments