Mikael Sand
500b8cebe6
Fix error message
2019-01-06 12:28:33 +02:00
Mikael Sand
732e5752de
Refactor, hoist closure creation.
2019-01-06 02:19:41 +02:00
Mikael Sand
741509763c
Refactor, simplify, improve readability, remove redundant closures.
2019-01-06 01:31:34 +02:00
Mikael Sand
fe85f9e66d
Fix viewBox pre condition warning
2019-01-05 22:57:29 +02:00
Mikael Sand
06edd0885a
Remove unused code from Matrix2D
2019-01-05 22:54:50 +02:00
Mikael Sand
e8d23439a4
Refactor extractGradient, simplify RNSVGCGGradient conversion, prettier
2019-01-05 22:28:16 +02:00
Mikael Sand
07292c1ab0
Optimize startup
...
Compile transform parser in development instead of in run-time
Remove lodash dependency and use tailor-made replacements instead
Change pag.js from dependency to dev dependency
2019-01-05 17:43:51 +02:00
Mikael Sand
025b8e7869
Update README.md
2018-12-16 22:20:42 +02:00
Janic Duplessis
bb57f86906
Fix compat with latest RN master
...
The code in the Shape constructor assumes that `SvgTouchableMixin` contains only functions but [this](https://github.com/facebook/react-native/blob/master/Libraries/Components/Touchable/Touchable.js#L904 ) was added which breaks this assumption.
This simply makes sure whatever we assign is a function before calling `.bind`.
2018-12-16 21:55:05 +02:00
Mikael Sand
3286005cb9
[android] Add null check after getting referenced mask, closes #871
2018-12-11 21:18:45 +02:00
Mikael Sand
f1aa8df95c
8.0.10
2018-12-11 21:01:14 +02:00
Mikael Sand
4b65c00912
[android] Fix transform of location in hitTesting.
2018-12-11 20:43:01 +02:00
Mikael Sand
6df918356b
[iOS] Fix bounds and transform of location in gestures.
...
Makes the svg root into the targetView every time, giving consistent
locations in touch gestures: [touch locationInView:targetView]
(RCTTouchhandler.m:_recordNewTouches)
2018-12-11 16:01:48 +02:00
Mikael Sand
8a87f34e23
[ts] Fix types: svg width and height are optional
...
Closes #667
2018-12-10 05:39:28 +02:00
Mikael Sand
e156844f98
Fix handling of numeric gradient offsets, closes #827
2018-12-10 05:36:09 +02:00
Mikael Sand
77872d453d
8.0.9
2018-12-09 07:21:06 +02:00
jesse
81f483aaf5
add google for build gradle repository
2018-12-09 07:19:36 +02:00
Abdulaziz Ghuloum
a82d4876b3
upgraded gradle to 3.2.1
2018-12-09 07:19:11 +02:00
Mikael Sand
fa97bf16b9
[ios] Fix crash when center is nan (empty bounds)
2018-12-09 03:03:14 +02:00
Mikael Sand
8c05da043d
[ios] Improve native animated & svg transform interactions with gestures
2018-12-09 01:24:12 +02:00
Mikael Sand
5f0823c4c4
[ios] Improve gesture responder native animated transform handling
2018-12-08 23:42:12 +02:00
Mikael Sand
37f07050e4
[ios] Improve gesture responder and onPress/In/Out transform handling
2018-12-08 23:04:53 +02:00
Mikael Sand
2f513504d2
[ios] Fix gesture responder, onPress/In/Out, onLayout
2018-12-08 03:04:22 +02:00
Ching Yaw Hao
31d0374c64
Fix percent.match is not a function when percent is a number
2018-12-07 04:39:24 +02:00
wing
c49fc19014
Add missing colon
2018-12-07 04:31:25 +02:00
wing
bd8934e293
Add missing opacity property to container and graphic element types
2018-12-07 04:31:25 +02:00
InJung Chung
b896714ed0
[andriod] invalidate SvgView when view hierarchy changes
2018-12-07 04:30:37 +02:00
Mikael Sand
69e9fcde14
Use Android SDK 27
2018-11-17 04:12:52 +02:00
Mikael Sand
e48dbdb08b
bump android gradle build tools to 3.1.4
2018-11-17 04:08:29 +02:00
Mikael Sand
410f557af1
Merge pull request #835 from igorlira/resize-invalidate
...
Invalidate bitmap when view size is changed
2018-11-17 04:06:37 +02:00
Igor Lira
e74ff2b3a3
Invalidate bitmap when view size is changed
2018-11-02 15:18:05 -07:00
Mikael Sand
1f74820501
8.0.8
2018-10-25 00:05:39 +03:00
Mikael Sand
9e2823063b
Merge pull request #824 from netmaxt3r/master
...
Do not create bitmap with 0 height/width during early render.
2018-10-24 23:49:52 +03:00
Mikael Sand
3424906d33
8.0.7
2018-10-24 23:35:37 +03:00
Mikael Sand
0fb4177101
[android] Support image onLayout, transform arrays, and fix clipping.
2018-10-24 23:35:23 +03:00
Mikael Sand
3a1c189c25
8.0.6
2018-10-24 22:13:56 +03:00
Mikael Sand
766926f758
Add support for clipRule on ClipPath element
...
[iOS] fix spec conformance, clipRule on non ClipPath elements must not
have any effect.
2018-10-24 22:13:41 +03:00
Nizam Moidu
c0bfe22e0d
dont create bitmap with 0 height/width during early render.
...
when specify background color in react-native even parent view height/width could become zero
https://github.com/react-native-community/react-native-svg/issues/823
2018-10-24 22:34:36 +04:00
Mikael Sand
e2e415c467
[android] Fix onPress to work when moving within bounds.
...
Adds support for inspector to check fill bounds.
2018-10-24 19:12:25 +03:00
Mikael Sand
0b3e07ef12
Update README.md
...
Add link to svgr
2018-10-24 04:19:50 +03:00
Mikael Sand
57db06328d
Update README.md
2018-10-24 03:43:48 +03:00
Mikael Sand
bd2f999655
Update README.md
2018-10-24 03:42:37 +03:00
Mikael Sand
2f46ee105a
8.0.5
2018-10-24 02:22:02 +03:00
Mikael Sand
38310677e3
Fix hit testing when using react-native transform arrays.
2018-10-24 02:21:46 +03:00
Mikael Sand
f6995e856d
8.0.4
2018-10-24 00:06:30 +03:00
Mikael Sand
9affd59b00
Fix path parser spec conformance
...
https://www.w3.org/TR/SVG/paths.html#PathDataMovetoCommands
The "moveto" commands (M or m) must establish a new initial point
and a new current point.
2018-10-24 00:03:02 +03:00
Mikael Sand
377a59351b
8.0.3
2018-10-22 19:06:30 +03:00
Mikael Sand
0c37a0c5e8
[android] Remove outdated references to shadow nodes in errors etc.
2018-10-22 19:06:18 +03:00
Mikael Sand
13b91aab39
[android] Add null checks before calling Matrix.mapRect
2018-10-22 16:28:22 +03:00
Mikael Sand
f287d4082d
Remove prop-types from peerDependencies (not used anymore)
2018-10-21 23:25:47 +03:00