I’m trying to get started with Expo in combination with tools that I know from web. With that in mind I tried to install styled-components as I read there’s a react-native version of it available. After I installed styled-components and built a really simple styled View with it, the metro bundler is throwing an error.
Undefined is not an object (evaluating 'argv.indexOf')
When I remove the styled-components import at the top of the file, the error disappears.
Has anyone ever had this same issue?
P.S. The error only persists in a Blank expo project. When I let Expo scaffold a project with tabs already enabled, styled-components doesn’t throw any errors and works like a charm.
Thanks in advance,