Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ReactPrimitives = require('../ReactPrimitives');
const Animated = require('animated');
const Easing = require('animated/lib/Easing');
const {
View,
Text,
Image,
StyleSheet,
// TODO(lmr): Dimensions
} = require('react-sketchapp');
Animated.inject.FlattenStyle(StyleSheet.flatten);
ReactPrimitives.inject({
StyleSheet,
View,
Text,
Image,
Easing,
Animated: {
...Animated,
View: Animated.createAnimatedComponent(View),
Text: Animated.createAnimatedComponent(Text),
Image: Animated.createAnimatedComponent(Image),
},
Platform: {
OS: 'sketch',
Version: 1,