diff --git a/README.md b/README.md index a48eca2a..9dbdbc5f 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ ##### With expo-cli -With Expo, you'll need to run `expo install react-native-svg` to install this library. +With Expo, you'll need to run `expo install react-native-svg` to install this library. Please refer to [Expo docs](https://docs.expo.io/versions/latest/sdk/svg/) for more information or jump ahead to [Usage](#Usage). @@ -321,6 +321,23 @@ export default () => ( ); ``` +#### CSS Support + +If remote SVG file contains CSS in ` + + +`; + +export default () => ; +``` + ### Common props: | Name | Default | Description | @@ -482,7 +521,7 @@ Code explanation: - The stroke prop defines the color of the line drawn around the object. - The color prop is a bit special in the sense that it won't color anything by itself, but define a kind of color variable that can be used by children elements. In this example we're defining a "green" color in the Svg element and using it in the second Path element via stroke="currentColor". The "currentColor" is what refers to that "green" value, and it can be used in other props that accept colors too, e.g. fill="currentColor". -### Rect +#### Rect The element is used to create a rectangle and variations of a rectangle shape: @@ -508,7 +547,7 @@ Code explanation: - The x prop defines the left position of the rectangle (e.g. x="25" places the rectangle 25 px from the left margin). - The y prop defines the top position of the rectangle (e.g. y="5" places the rectangle 5 px from the top margin). -##### Circle +#### Circle The element is used to create a circle: @@ -1135,14 +1174,14 @@ const markerRendering = ` - + - + `; @@ -1176,7 +1215,7 @@ import { SvgXml } from 'react-native-svg'; const markerRendering = ` -