Skip to content

Instantly share code, notes, and snippets.

@gustavoisensee
Last active July 29, 2019 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavoisensee/6f39b7af2e99a01850201dfe9c1f7b6a to your computer and use it in GitHub Desktop.
Save gustavoisensee/6f39b7af2e99a01850201dfe9c1f7b6a to your computer and use it in GitHub Desktop.
// This is a jest-mock for react-native-svg lib
import React from 'react';
import { View } from 'react-native';
export const Circle = () => <View />;
export const Ellipse = () => <View />;
export const G = () => <View />;
export const Text = () => <View />;
export const TSpan = () => <View />;
export const TextPath = () => <View />;
export const Path = () => <View />;
export const Polygon = () => <View />;
export const Polyline = () => <View />;
export const Line = () => <View />;
export const Rect = () => <View />;
export const Use = () => <View />;
export const Image = () => <View />;
export const Symbol = () => <View />;
export const Defs = () => <View />;
export const LinearGradient = () => <View />;
export const RadialGradient = () => <View />;
export const Stop = () => <View />;
export const ClipPath = () => <View />;
export const Pattern = () => <View />;
export const Mask = () => <View />;
export default View;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment