Rename helper function to avoid confusion with React hook (#38340)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38340

changelog: [internal]

Reviewed By: yungsters

Differential Revision: D47437149

fbshipit-source-id: 32a9c4effa1a2ea2207d5cb85f0ffd7878110d11
This commit is contained in:
Samuel Susla
2023-07-13 12:29:21 -07:00
committed by Facebook GitHub Bot
parent fcfaf8c53f
commit ec1e2afd08
2 changed files with 3 additions and 3 deletions
@@ -47,7 +47,7 @@ export default function useAnimatedProps<TProps: {...}, TInstance>(
[props],
);
const useNativePropsInFabric =
ReactNativeFeatureFlags.useSetNativePropsInFabric();
ReactNativeFeatureFlags.shouldUseSetNativePropsInFabric();
useAnimatedPropsLifecycle(node);
// TODO: This "effect" does three things:
@@ -52,7 +52,7 @@ export type FeatureFlags = {|
/**
* Enables use of setNativeProps in JS driven animations.
*/
useSetNativePropsInFabric: () => boolean,
shouldUseSetNativePropsInFabric: () => boolean,
|};
const ReactNativeFeatureFlags: FeatureFlags = {
@@ -64,7 +64,7 @@ const ReactNativeFeatureFlags: FeatureFlags = {
isGlobalWebPerformanceLoggerEnabled: () => false,
enableAccessToHostTreeInFabric: () => false,
shouldUseAnimatedObjectForTransform: () => false,
useSetNativePropsInFabric: () => false,
shouldUseSetNativePropsInFabric: () => false,
};
module.exports = ReactNativeFeatureFlags;