From f45fb04f0ff74fe2b3ed0983431fdaa5e8126647 Mon Sep 17 00:00:00 2001 From: Gabriel Donadel Dall'Agnol Date: Thu, 1 Sep 2022 12:16:12 -0300 Subject: [PATCH] chore: Update AnimatedProps imports --- Libraries/Animated/__tests__/Animated-test.js | 2 +- Libraries/Animated/nodes/AnimatedProps.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Libraries/Animated/__tests__/Animated-test.js b/Libraries/Animated/__tests__/Animated-test.js index 6c107e643273fd..fd391fa1264540 100644 --- a/Libraries/Animated/__tests__/Animated-test.js +++ b/Libraries/Animated/__tests__/Animated-test.js @@ -8,7 +8,6 @@ * @emails oncall+react_native */ -import AnimatedProps from '../nodes/AnimatedProps'; import TestRenderer from 'react-test-renderer'; import * as React from 'react'; @@ -21,6 +20,7 @@ jest.mock('../../BatchedBridge/NativeModules', () => ({ }, })); +let AnimatedProps = require('../nodes/AnimatedProps').default; let Animated = require('../Animated').default; describe('Animated tests', () => { diff --git a/Libraries/Animated/nodes/AnimatedProps.js b/Libraries/Animated/nodes/AnimatedProps.js index 0260bf464d2461..6dd5efdd2e0241 100644 --- a/Libraries/Animated/nodes/AnimatedProps.js +++ b/Libraries/Animated/nodes/AnimatedProps.js @@ -10,7 +10,6 @@ 'use strict'; -import typeof AnimatedNodeType from './AnimatedNode'; import type {PlatformConfig} from '../AnimatedPlatformConfig'; import {findNodeHandle} from '../../ReactNative/RendererProxy'; @@ -18,8 +17,8 @@ import {AnimatedEvent} from '../AnimatedEvent'; import NativeAnimatedHelper from '../NativeAnimatedHelper'; import invariant from 'invariant'; -const AnimatedNode: AnimatedNodeType = require('./AnimatedNode').default; -const AnimatedStyle = require('./AnimatedStyle').default; +import AnimatedNode from './AnimatedNode'; +import AnimatedStyle from './AnimatedStyle'; export default class AnimatedProps extends AnimatedNode { _props: Object;