Commit Graph

14 Commits

Author SHA1 Message Date
Wojciech Lewicki
1b01381f28 feat: remove extractColor in favor of RN impl (#1726)
PR removing extractColor.ts in favor of using the processColor implementation straight from react-native. It should handle all the cases from the previous implementation and the cases with PlatformColor and DynamicColorIOS. Normally we would just send the returned value to the native side, but in react-native-svg, e.g. fill prop can have more values than just color, e.g. currentColor. Because of it, we cannot use UIColor on iOS, NSColor on macOS and customType="Color" on Android as a prop type there and therefore we need to prepare the custom values on the JS side. It is done by passing the prop as an array with specific first element. In case of colors, it is 0. (hopefully I understood the code right).
2022-04-12 13:47:21 +02:00
Wojciech Lewicki
522c2e31f8 chore: add Example to repo 2022-02-21 16:17:37 +01:00
Horcrux
80647727bd Remove example 2017-01-18 13:52:19 +08:00
Horcrux
c9a64c44fc update example`s react-naitve version to 0.31.0 2016-08-19 16:02:05 +08:00
Horcrux
c846c59ed6 change example bundle id 2016-07-24 12:12:32 +08:00
Horcrux
05c4bff04a ArtSvgExample => SvgExample 2016-07-24 12:08:15 +08:00
Horcrux
fabefb7158 upgrade example`s react-native version to 0.29.0 2016-07-13 17:56:10 +08:00
Horcrux
329629ae21 fix lint warning 2016-05-21 21:07:26 +08:00
Horcrux
cbce096b5c Use eslint, add travis-ci 2016-05-04 17:54:30 +08:00
Horcrux
5c31c538d6 fix Example xcodeproj path error 2016-04-24 10:22:36 +08:00
Horcrux
c8aaa1eb12 change copy right and add clip for ios 2016-04-21 15:42:30 +08:00
Horcrux
b1d8e6a29a recover removed files which are deleted by accident 2016-04-20 00:57:32 +08:00
Horcrux
d700ca5493 refactor all components and isolated from ART dependency 2016-04-20 00:52:59 +08:00
Horcrux
a482948b83 Add examples and refactor code
Add examples and refactor code
2016-01-21 23:44:38 +08:00