Skip to content

Commit f99174d

Browse files
chore: Update AnimatedProps imports
1 parent 95c1c8d commit f99174d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Libraries/Animated/__tests__/Animated-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* @emails oncall+react_native
99
*/
1010

11-
import AnimatedProps from '../nodes/AnimatedProps';
1211
import TestRenderer from 'react-test-renderer';
1312
import * as React from 'react';
1413

@@ -21,6 +20,7 @@ jest.mock('../../BatchedBridge/NativeModules', () => ({
2120
},
2221
}));
2322

23+
let AnimatedProps = require('../nodes/AnimatedProps').default;
2424
let Animated = require('../Animated').default;
2525

2626
describe('Animated tests', () => {

Libraries/Animated/nodes/AnimatedProps.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@
1010

1111
'use strict';
1212

13-
import typeof AnimatedNodeType from './AnimatedNode';
1413
import type {PlatformConfig} from '../AnimatedPlatformConfig';
1514

1615
import ReactNative from '../../Renderer/shims/ReactNative';
1716
import {AnimatedEvent} from '../AnimatedEvent';
1817
import NativeAnimatedHelper from '../NativeAnimatedHelper';
1918
import invariant from 'invariant';
2019

21-
const AnimatedNode: AnimatedNodeType = require('./AnimatedNode').default;
22-
const AnimatedStyle = require('./AnimatedStyle').default;
20+
import AnimatedNode from './AnimatedNode';
21+
import AnimatedStyle from './AnimatedStyle';
2322

2423
export default class AnimatedProps extends AnimatedNode {
2524
_props: Object;

0 commit comments

Comments
 (0)