hyochan / dooboo-ui-legacy

React Native UI Components with react-hook (web, ios, android)
MIT License
140 stars 72 forks source link

React Native SVG in components #380

Open hcphoon01 opened 3 years ago

hcphoon01 commented 3 years ago

Describe the bug After installing dooboo ui by running npm install dooboo-ui I had to manually install the @emotion/native and react-native-svg packages. When trying to use the Accordion and Search components I get an unable to resolve module error in react native svg.

[Error: undefined Unable to resolve module ./elements/Circle from C:\Users\harry\Documents\Projects\wfd\node_modules\react-native-svg\src\ReactNativeSVG.ts:

To Reproduce Steps to reproduce the behavior:

  1. Import SearchInput/Accordion component from dooboo-ui
  2. Set up the component as per the docs
  3. Run the app
  4. See error

Expected behavior I expect to see a working accordion or search input

Desktop (please complete the following information):

Smartphone (please complete the following information):

hyochan commented 3 years ago

Could you try installing required package? yarn add react-native-svg