Skip to content

Custom svg transformer#18

Open
emilianobovetti wants to merge 4 commits into
masterfrom
svgTransformer
Open

Custom svg transformer#18
emilianobovetti wants to merge 4 commits into
masterfrom
svgTransformer

Conversation

@emilianobovetti

@emilianobovetti emilianobovetti commented Oct 23, 2019

Copy link
Copy Markdown
Member

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