diff --git a/README.md b/README.md index 3f2d3a2..293af98 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,13 @@ SVG from an SVG/XML format file. ## Installation -``` +```bash npm i @target-corp/react-native-svg-parser ``` ## Usage -``` +```jsx import ReactNativeSvgParser from 'react-native-svg-parser' const svgNode = ReactNativeSvgParser(`YOUR SVG XML STRING`, `YOUR CSS STYLESHEET STRING`) @@ -44,7 +44,7 @@ The parser takes a third parameter, and object with config options. You can spec Example usage: -``` +```jsx import ReactNativeSvgParser from 'react-native-svg-parser' const svgString = ` @@ -76,13 +76,13 @@ render() { In order to test and develop locally you will need to install the peer dependencies (React and React Native). However, we have you covered. Just run this command: -``` +```bash npm run install-peers ``` Then you can run test lint and build using this command: -``` +```bash npm run ci ``` @@ -92,8 +92,8 @@ npm run ci On v5.5.1 react-native-svg enforced prop type of "object" on transform attribute. However, as of v6.0.0 this is changed to: -``` - transform: PropTypes.oneOfType([PropTypes.object, PropTypes.string]) +```jsx +transform: PropTypes.oneOfType([PropTypes.object, PropTypes.string]) ``` https://github.com/react-native-community/react-native-svg/blob/master/lib/props.js#L69