mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
fcfaf8c53f
commit
ec1e2afd08
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user