mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 07:25:53 +00:00
fix(web): #1274 Unable to build using babel-plugin-react-native-web
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user