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

bjartebore picture bjartebore  路  3Comments

ArsalanCsquare picture ArsalanCsquare  路  3Comments

robertgonzales picture robertgonzales  路  3Comments

ShaMan123 picture ShaMan123  路  3Comments

levibuzolic picture levibuzolic  路  3Comments