Skip to content

Commit

Permalink
revert example
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon committed Jan 21, 2022
1 parent de7d7d3 commit 878222a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions example/src/Examples/API/SVG.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import React from "react";
import { Dimensions } from "react-native";
import { Canvas, ImageSVG, Skia, useSVG } from "@shopify/react-native-skia";
import { Canvas, ImageSVG, useSVG } from "@shopify/react-native-skia";

const { width, height } = Dimensions.get("window");

const svg = Skia.SVG.MakeFromString(
"<svg width='290' height='500' viewBox='0 0 290 500' xmlns='http://www.w3.org/2000/svg'><circle cx='31' cy='325' r='120px' fill='#c02aaa'/></svg>"
);

export const SVG = () => {
// const svg = useSVG(require("./tiger.svg"));
const svg = useSVG(require("./tiger.svg"));
if (svg === null) {
return null;
}
Expand Down

0 comments on commit 878222a

Please sign in to comment.