dooboo-ui-legacy
dooboo-ui-legacy copied to clipboard
React Native SVG in components
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:
- Import SearchInput/Accordion component from dooboo-ui
- Set up the component as per the docs
- Run the app
- 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
Could you try installing required package?
yarn add react-native-svg