Update react-native-svg-transformer documentation

- Use `metro.config.js` instead of `rn-cli.config.js`.
- React Native 0.59.x ships with `metro.config.js` file, so it will be used as the default config for Metro.
- `metro.config.js` file works on React Native 0.57 and 0.58 too.
This commit is contained in:
krister
2019-03-01 18:51:01 +02:00
parent be6a517029
commit 613f801fa2
+3 -2
View File
@@ -291,9 +291,10 @@ export default () => (
Try [react-native-svg-transformer](https://github.com/kristerkari/react-native-svg-transformer) to get compile time conversion and cached transformations.
https://github.com/kristerkari/react-native-svg-transformer#installation-and-configuration
https://github.com/kristerkari/react-native-svg-transformer#for-react-native-v057-or-newer
https://github.com/kristerkari/react-native-svg-transformer#for-react-native-v057-or-newer--expo-sdk-v3100-or-newer
`metro.config.js`
rn-cli.config.js
```js
const { getDefaultConfig } = require("metro-config");