mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 00:12:21 +00:00
fix: remove deprecated import from react-native-web (#2027)
fix: remove deprecated import from react-native-web
This commit is contained in:
@@ -2,8 +2,7 @@ import * as React from 'react';
|
|||||||
import type { GestureResponderEvent, TransformsStyle } from 'react-native';
|
import type { GestureResponderEvent, TransformsStyle } from 'react-native';
|
||||||
import {
|
import {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
unstable_createElement as ucE,
|
unstable_createElement as createElement,
|
||||||
createElement as cE,
|
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import type {
|
import type {
|
||||||
NumberArray,
|
NumberArray,
|
||||||
@@ -14,8 +13,6 @@ import SvgTouchableMixin from './lib/SvgTouchableMixin';
|
|||||||
import { resolve } from './lib/resolve';
|
import { resolve } from './lib/resolve';
|
||||||
import { transformsArrayToProps } from './lib/extract/extractTransform';
|
import { transformsArrayToProps } from './lib/extract/extractTransform';
|
||||||
|
|
||||||
const createElement = cE || ucE;
|
|
||||||
|
|
||||||
type BlurEvent = Object;
|
type BlurEvent = Object;
|
||||||
type FocusEvent = Object;
|
type FocusEvent = Object;
|
||||||
type PressEvent = Object;
|
type PressEvent = Object;
|
||||||
|
|||||||
Reference in New Issue
Block a user