Skip to content

Commit

Permalink
fix: remove deprecated import from react-native-web (#2027)
Browse files Browse the repository at this point in the history
fix: remove deprecated import from react-native-web
  • Loading branch information
janlat authored May 24, 2023
1 parent 9883614 commit 98fdeaa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ReactNativeSVG.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as React from 'react';
import type { GestureResponderEvent, TransformsStyle } from 'react-native';
import {
// @ts-ignore
unstable_createElement as ucE,
createElement as cE,
unstable_createElement as createElement,
} from 'react-native';
import type {
NumberArray,
Expand All @@ -14,8 +13,6 @@ import SvgTouchableMixin from './lib/SvgTouchableMixin';
import { resolve } from './lib/resolve';
import { transformsArrayToProps } from './lib/extract/extractTransform';

const createElement = cE || ucE;

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

0 comments on commit 98fdeaa

Please sign in to comment.