Skip to content

Commit ec1e2af

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
Rename helper function to avoid confusion with React hook (facebook#38340)
Summary: Pull Request resolved: facebook#38340 changelog: [internal] Reviewed By: yungsters Differential Revision: D47437149 fbshipit-source-id: 32a9c4effa1a2ea2207d5cb85f0ffd7878110d11
1 parent fcfaf8c commit ec1e2af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-native/Libraries/Animated/useAnimatedProps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function useAnimatedProps<TProps: {...}, TInstance>(
4747
[props],
4848
);
4949
const useNativePropsInFabric =
50-
ReactNativeFeatureFlags.useSetNativePropsInFabric();
50+
ReactNativeFeatureFlags.shouldUseSetNativePropsInFabric();
5151
useAnimatedPropsLifecycle(node);
5252

5353
// TODO: This "effect" does three things:

packages/react-native/Libraries/ReactNative/ReactNativeFeatureFlags.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export type FeatureFlags = {|
5252
/**
5353
* Enables use of setNativeProps in JS driven animations.
5454
*/
55-
useSetNativePropsInFabric: () => boolean,
55+
shouldUseSetNativePropsInFabric: () => boolean,
5656
|};
5757

5858
const ReactNativeFeatureFlags: FeatureFlags = {
@@ -64,7 +64,7 @@ const ReactNativeFeatureFlags: FeatureFlags = {
6464
isGlobalWebPerformanceLoggerEnabled: () => false,
6565
enableAccessToHostTreeInFabric: () => false,
6666
shouldUseAnimatedObjectForTransform: () => false,
67-
useSetNativePropsInFabric: () => false,
67+
shouldUseSetNativePropsInFabric: () => false,
6868
};
6969

7070
module.exports = ReactNativeFeatureFlags;

0 commit comments

Comments
 (0)