React Native transform in styled-components

Viewed 1928

Am I able to use transform in styled-components in React Native?

I define the styled component like this:

const StyledAnimatedView = Animated.createAnimatedComponent(styled.View<
    ViewProps
  >`
    transform: translateY(-100);
`);

but it throws me an error when component mounts:

Error: Failed to parse declaration "transform: translateY(-100)"

I know it is possible in web but maybe not in React Native?

1 Answers
Related