mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
feat: move css to different package for size reduction (#2168)
PR based on https://github.com/software-mansion/react-native-svg/pull/1452 extracting `css` related components to different package to reduce the size of the package. ***THIS IS A BREAKING CHANGE***. From now on, you should import ``` SvgCss, SvgCssUri, SvgWithCss, SvgWithCssUri, inlineStyles, LocalSvg, WithLocalSvg, loadLocalRawResource, ``` from `react-native-svg/css` package instead.
This commit is contained in:
@@ -12,6 +12,10 @@ module.exports = {
|
||||
'react-native/react-native': true,
|
||||
},
|
||||
settings: {
|
||||
'import/core-modules': [
|
||||
'react-native-svg',
|
||||
'react-native-svg/css',
|
||||
],
|
||||
'import/resolver': {
|
||||
'babel-module': {
|
||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||
|
||||
Reference in New Issue
Block a user