diff --git a/README.md b/README.md index 551e58a3..33bfa100 100644 --- a/README.md +++ b/README.md @@ -232,10 +232,7 @@ const { Circle, Rect } = Svg; */ import React from 'react'; -import { View, StyleSheet, Dimensions } from 'react-native'; - -// Percentages work in plain react-native but aren't supported in Expo yet, workaround with this or onLayout -const { width, height } = Dimensions.get('window'); +import { View, StyleSheet } from 'react-native'; export default class SvgExample extends React.Component { render() { @@ -245,7 +242,7 @@ export default class SvgExample extends React.Component { StyleSheet.absoluteFill, { alignItems: 'center', justifyContent: 'center' }, ]}> - +