Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createAnimatedStyle(styles) {
styles = StyleSheet.flatten(styles)
if (is.obj(styles.shadowOffset)) {
styles.shadowOffset = new AnimatedObject(styles.shadowOffset)
}
return new AnimatedStyle(styles)
},
createAnimatedRef: (node, mounted, forceUpdate) => ({