Skip to content

Commit

Permalink
fix(web): #1274 Unable to build using babel-plugin-react-native-web
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Mar 4, 2020
1 parent 715e9b8 commit 80b5064
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/ReactNativeSVG.web.ts
@@ -1,18 +1,14 @@
// @ts-ignore
import * as React from 'react';
import { GestureResponderEvent } from 'react-native';
import {
GestureResponderEvent,
// @ts-ignore
unstable_createElement as createElement,
} from 'react-native';
import { NumberArray, NumberProp } from './lib/extract/types';
import SvgTouchableMixin from './lib/SvgTouchableMixin';
import { resolve } from './lib/resolve';

const createElement: <P>(
type: React.ReactType,
props?: P,
...children: React.ReactNode[]
) => React.ReactElement<P> =
require('react-native').unstable_createElement ||
require('react-native').createElement;

type BlurEvent = Object;
type FocusEvent = Object;
type PressEvent = Object;
Expand Down

0 comments on commit 80b5064

Please sign in to comment.