Commit Graph

19 Commits

Author SHA1 Message Date
Wojciech Lewicki
992cf19a68 chore: bump examples to rn 0.70 (#1858)
PR bumping Example and FabricExample apps to rn 0.70.
2022-09-06 15:32:00 +02:00
Wojciech Lewicki
0a26639532 chore: bump library and examples to rn 0.70-rc3 (#1837)
PR bumping library to RN 0.70-rc3, which might make it not compatible with earlier versions of RN on Fabric. It should come with the same change in other libraries.

In this PR, I had to remove macos code from Example since it breaks @react-native-community/cli resolution. Hopefully we can bring it back soon.
2022-08-17 14:24:50 +02:00
Wojciech Lewicki
98c14b4f45 chore: add CI for JS, iOS and Android formatting (#1782)
Added CI workflow and local pre-commit hook for formatting and linting the newly added JS, iOS and Android code.
2022-08-16 12:00:32 +02:00
Wojciech Lewicki
8f1bda4856 feat: add Fabric on iOS without ComponentViews (#1821)
Version of #1754 without usage of ComponentViews. It seems like a more proper way, but introduces the necessity of clearing whole state of each component on recycling for it not to be used when view is recycled.

Still known problems:

We stringify props of type NumberProp since codegen only accepts props of a single type. It is the fastest way of dealing with it, but maybe there could be a better way to handle it.
Image resolving should be probably handled the same as in RN core
SvgView needs to set opaque = NO so it is does not have black background (it comes from the fact that RCTViewComponentView overrides backgroundColor setter which in turn somehow messes with the view being opaque). All other svg components do it already so maybe it is not such an issue.
transform prop won't work when set natively since it is not parsed in Fabric
2022-08-11 14:08:11 +02:00
Wojciech Lewicki
286c02fac4 Refactor typescript code (#1806)
Co-authored-by: Eric Butler <eric@codebutler.com>
2022-07-22 17:41:30 +02:00
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