torgeadelin / react-native-animated-nav-tab-bar

A simple and customisable React Native component that implements an animated bottom tab bar for React Navigation.
MIT License
889 stars 102 forks source link

error: Error: Unable to resolve module styled-components/native #125

Closed techamit95ch closed 1 year ago

techamit95ch commented 1 year ago

styled-components/native could not be found within the project or in these directories: node_modules ../../../../node_modules 7 | var reactNative = require('react-native'); 8 | var reactNativeScreens = require('react-native-screens');

9 | var Styled = require('styled-components/native'); | ^ 10 | 11 | function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } 12 | at ModuleResolver.resolveDependency

lunacer commented 1 year ago

FYI, I just manually added styled-components to my project and could resolve the error.

hainm149889 commented 1 year ago

any answer??

github-actions[bot] commented 1 year ago

Stale issue message

gesangseto commented 1 year ago

Just install styled-components npm install styled-components

torgeadelin commented 1 year ago

This should work on latest release. 3.1.10 Styled components is now a requirement.