From 2919cfa8c3b5d51b5868d757cc1f20cade84bfb6 Mon Sep 17 00:00:00 2001 From: Mikael Sand Date: Fri, 25 Jan 2019 16:48:24 +0200 Subject: [PATCH] Update README.md --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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' }, ]}> - +