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:
Wojciech Lewicki
2022-09-15 12:08:57 +02:00
committed by GitHub
parent ee6e5da195
commit 3a04189df8
111 changed files with 3547 additions and 2124 deletions
+4 -4
View File
@@ -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"