Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

React Native SVG in components #380

Open
hcphoon01 opened this issue Apr 29, 2021 · 1 comment
Open

React Native SVG in components #380

hcphoon01 opened this issue Apr 29, 2021 · 1 comment
Labels
🙏 help wanted Extra attention is needed

Comments

@hcphoon01
Copy link

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
@hyochan
Copy link
Owner

hyochan commented May 25, 2021

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

@hyochan hyochan added the 🙏 help wanted Extra attention is needed label May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🙏 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants