mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-05 07:59:28 +00:00
fix: reanimated on old architecture (#1869)
PR adding option for `Double` for all props that were of type `NumberProp` on `Android` so `reanimated` works the same as before on old architecture. It also introduces the change of how `fill` and `stroke` should be constructed for options not going through `render` method, e.g. `react-native-reanimated`. An example of how to handle it can be seen in the provided example: https://github.com/react-native-svg/react-native-svg/pull/1869/files#diff-76a76277daf14518270e8aea8a5e9358a8215d7e4276d2e5f1c4fe95107cdc20
This commit is contained in:
@@ -157,8 +157,8 @@ exports[`supports CSS in style element 1`] = `
|
||||
<RNSVGRect
|
||||
fill={
|
||||
Object {
|
||||
"payload": 4294901760,
|
||||
"type": 0,
|
||||
"value": 4294901760,
|
||||
}
|
||||
}
|
||||
height="200"
|
||||
@@ -171,8 +171,8 @@ exports[`supports CSS in style element 1`] = `
|
||||
}
|
||||
stroke={
|
||||
Object {
|
||||
"payload": 4278190335,
|
||||
"type": 0,
|
||||
"value": 4278190335,
|
||||
}
|
||||
}
|
||||
strokeWidth="16"
|
||||
@@ -185,8 +185,8 @@ exports[`supports CSS in style element 1`] = `
|
||||
<RNSVGRect
|
||||
fill={
|
||||
Object {
|
||||
"payload": 4294901760,
|
||||
"type": 0,
|
||||
"value": 4294901760,
|
||||
}
|
||||
}
|
||||
fillOpacity={0.3}
|
||||
@@ -201,8 +201,8 @@ exports[`supports CSS in style element 1`] = `
|
||||
}
|
||||
stroke={
|
||||
Object {
|
||||
"payload": 4278190335,
|
||||
"type": 0,
|
||||
"value": 4278190335,
|
||||
}
|
||||
}
|
||||
strokeWidth="16"
|
||||
|
||||
Reference in New Issue
Block a user