dooboo-ui-legacy icon indicating copy to clipboard operation
dooboo-ui-legacy copied to clipboard

React Native SVG in components

Open hcphoon01 opened this issue 3 years ago • 1 comments

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):

  • OS: Windows 10

Smartphone (please complete the following information):

  • Device: Pixel 4 emulator
  • OS: Android

hcphoon01 avatar Apr 29 '21 11:04 hcphoon01

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

hyochan avatar May 25 '21 07:05 hyochan