Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom svg transformer #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Custom svg transformer #18

wants to merge 4 commits into from

Conversation

emilianobovetti
Copy link
Member

@emilianobovetti emilianobovetti commented Oct 23, 2019

react-native-svg-transformer funziona bene, ma per qualche motivo ho dei problemi di rendering sul mio telefono: visualizzo il logo, ma non vedo le icone. Non ho idea del motivo. Aggiungere svgo alla pipeline di svgr sembra risolvere il problema.

Più di una review del codice (che sono venti righe) sarebbe utile che controllaste se avete problemi di rendering con questa soluzione prima di fare il merge.

@emilianobovetti emilianobovetti force-pushed the svgTransformer branch 2 times, most recently from 313c6c6 to 4a175ec Compare October 30, 2019 22:26
Using @svgr/plugin-svgo seems to fix some rendering issues
`@apollo/react-hooks@^0.1.0-beta.10` produces an odd bug:
Worked fine with `react-native-svg-transformer`,
throws an exception with `@hitbit/expo-svg-transformer`.

For some obscure reason the `useQuery` in Home screen
couldn't find the client object as if it wasn't mounted
inside an `ApolloProvider`.

This upgrade seems to fix the issue.
Make the web great again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant