Files
react-native-svg/TestsExample/App.js
André Morales 046051291a Restoring pointer events box_none behavior on Android (#1808)
This PR is a bug fix and makes the pointer-events box-none work again after react-native 66 changes. It changes a bit how it should be used as I'll describe below. This solves #1807 .

I created a getHitSlopRect in the RenderableView that responds with a Rect that make the hit test detection fail on the react-native forcing it to run reactTagForTouch like it used to in previous versions.

This PR impacts pointer events box-none usage. This is an important change for me because it enables the usage of overlapping SVG keeping only the painted area as touchable elements, and not the whole SVG box.
2022-10-05 16:45:25 +02:00

13 lines
344 B
JavaScript

/* eslint-disable no-unused-vars */
import React from 'react';
import ColorTest from './src/ColorTest';
import Test1718 from './src/Test1718';
import Test1813 from './src/Test1813';
import Test1845 from './src/Test1845';
import PointerEventsBoxNone from './src/PointerEventsBoxNone';
export default function App() {
return <ColorTest />;
}