Skip to content

Commit

Permalink
fix(web): improve react-native-web version compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Apr 9, 2020
1 parent ba4159c commit 88953c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ReactNativeSVG.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import * as React from 'react';
import {
GestureResponderEvent,
// @ts-ignore
unstable_createElement as createElement,
unstable_createElement as ucE,
// @ts-ignore
createElement as cE,
} from 'react-native';
import { NumberArray, NumberProp } from './lib/extract/types';
import SvgTouchableMixin from './lib/SvgTouchableMixin';
import { resolve } from './lib/resolve';

const createElement = cE || ucE;

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

0 comments on commit 88953c3

Please sign in to comment.