mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 14:25:14 +00:00
PR aligning example apps and fixing one bug. On web, if you don't pass a color to the elements, they are rendered with `black` fill. We recreate this behavior in examples, but maybe it should be the default behavior if `fill` is `undefined`. It would probably need to be changed on the native side somehow. Another fix is to parse `fill` prop in `setNativeProps` since Fabric support has been added and `fill` prop structure has been changed, it cannot be handled on the native side on `Android` due to complying to interfaces. Another fix is passing `transform` prop in `Svg` to `G` when it is not `react-native` style `transform` prop so it is always applied. It creates a problem mentioned in the comment in the code and should be addressed in later PRs.
14 lines
383 B
JavaScript
14 lines
383 B
JavaScript
/* eslint-disable no-unused-vars */
|
|
import React from 'react';
|
|
|
|
import ColorTest from './src/ColorTest';
|
|
import Test1374 from './src/Test1374';
|
|
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 />;
|
|
}
|