React-native-reanimated: Automatically import Animated operators

Created on 27 Jun 2019  路  2Comments  路  Source: software-mansion/react-native-reanimated

see #503

Most helpful comment

I think it's best just to drop the default export and use named export for everything:

import {Value, eq} from "react-native-reanimated";

We destructure the default export later anyway, and if someone wants Animated.x they could always do * as Animated.

All 2 comments

I think it's best just to drop the default export and use named export for everything:

import {Value, eq} from "react-native-reanimated";

We destructure the default export later anyway, and if someone wants Animated.x they could always do * as Animated.

@wcandillon The second idea makes more sense. 馃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WeTruck picture WeTruck  路  3Comments

bjartebore picture bjartebore  路  3Comments

levibuzolic picture levibuzolic  路  3Comments

jwhscholten picture jwhscholten  路  4Comments

dinhmai74 picture dinhmai74  路  3Comments