mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
Up until now, trying to use reanimated with react-native-svg in react-native-web resulted in an error. This adds a setNativeProps function to the web implementation to directly modify the transform and style props on a SVGElement ref. Since there is a need to track the "last merged props" and those need to be reset on every render, the render method has been moved into the WebShape class and a tag string property has been added. As g had some extra handling for x and y, a prepareProps function was added as well.
8 lines
185 B
JavaScript
8 lines
185 B
JavaScript
module.exports = {
|
|
presets: ['module:metro-react-native-babel-preset'],
|
|
plugins: [
|
|
'@babel/plugin-proposal-export-namespace-from',
|
|
'react-native-reanimated/plugin',
|
|
],
|
|
};
|