Mikael Sand
53e91fcdfc
[web] Remove incorrect preserveAspectRatio logic
2019-03-09 06:28:25 +02:00
Mikael Sand
f9c9ac8920
Refactor web implementation
2019-03-09 05:55:55 +02:00
Mikael Sand
21c236abef
Fix handling of style arrays and react-native-web style numbers
2019-03-09 05:47:09 +02:00
Mikael Sand
5f34b210a1
Refactor web implementation
2019-03-09 04:50:04 +02:00
Mikael Sand
03e10ef038
Refactor web implementation
2019-03-09 04:43:35 +02:00
Mikael Sand
742b79b9b9
Add refactored implementation from https://github.com/msand/swgs/
2019-03-09 04:23:39 +02:00
Mikael Sand
f4144384ee
Merge pull request #958 from kristerkari/update-svg-transformer-docs
...
Update react-native-svg-transformer documentation
2019-03-09 01:20:52 +02:00
Mikael Sand
74f4fd6b30
Merge pull request #947 from flsilva/docs-svg-example
...
[docs] Add pencil example to showcase color inheritance.
2019-03-09 01:19:15 +02:00
Mikael Sand
43a29b0a43
Merge pull request #944 from flsilva/fix-svgprops-interface
...
[ts] Fix SvgProps and ResponderProps interfaces.
2019-03-09 01:17:50 +02:00
krister
613f801fa2
Update react-native-svg-transformer documentation
...
- Use `metro.config.js` instead of `rn-cli.config.js`.
- React Native 0.59.x ships with `metro.config.js` file, so it will be used as the default config for Metro.
- `metro.config.js` file works on React Native 0.57 and 0.58 too.
2019-03-01 18:51:01 +02:00
Flavio Silva
47e2e02bf5
[docs] Change 'cascade' wording to 'inheritance'.
2019-02-19 14:24:34 -03:00
Flavio Silva
5d1b0eece5
[docs] Add a code explanation section to the color cascade (pencil) example.
2019-02-19 10:46:38 -03:00
Flavio Silva
01ed35959e
[docs] Add pencil example to showcase how to cascade color.
2019-02-19 10:22:59 -03:00
Flavio Silva
ffc3c19c0c
[ts] Fix SvgProps: add color and title.
2019-02-18 18:00:55 -03:00
Flavio Silva
6b3166dc17
[ts] Fix SvgProps interface: make it extends GProps since <Svg> also accepts all those props.
2019-02-18 17:21:08 -03:00
Flavio Silva
d45459cd37
[ts] Fix ResponderProps interface: change pointerEvents to have the same type as in ReactNative.ViewProps, i.e., a set of allowed strings, not a function.
2019-02-18 17:14:04 -03:00
Mikael Sand
be6a517029
Merge pull request #930 from kant/patch-1
...
Added closing ` on paragraph #120
2019-02-09 20:06:30 +02:00
Darío Hereñú
cd77de3813
Added closing ` on paragraph #120
...
* plus minor formatting proposals
2019-02-09 10:53:00 -03:00
Mikael Sand
8e888ac1fc
9.2.4
2019-02-09 04:03:35 +02:00
Mikael Sand
61100e05b8
Merge branch 'ios-touch-CGPathContainsPoint-bug'
2019-02-09 04:01:50 +02:00
Mikael Sand
7f396e813a
Merge pull request #924 from Orbyt/patch-1
...
Prevents early rendering.
2019-02-09 03:59:00 +02:00
Mikael Sand
119e04eb4c
Merge branch 'master' into patch-1
2019-02-09 03:56:51 +02:00
Mikael Sand
f4688df6d1
Merge pull request #925 from malord/master
...
Check for negative dimensions before calling Bitmap.createBitmap.
2019-02-09 03:54:42 +02:00
Mikael Sand
3c172abb64
Merge pull request #928 from alexlau811/master
...
[ios] Fix active filtering in hitTest to return the last (top-most) view
2019-02-09 03:54:22 +02:00
Mikael Sand
8fb377022b
Revert Revert #755 and fix actual root cause instead.
...
Fixed issues with removeChildren and manageChildren bugs,
causing exceptions from RCTUIManager
Related to #258 and #848
https://github.com/facebook/react-native/issues/23350
https://github.com/FormidableLabs/victory-native/issues/432
https://github.com/indiespirit/react-native-chart-kit/issues/62
https://github.com/JesperLekland/react-native-svg-charts/pull/280
https://github.com/JesperLekland/react-native-svg-charts/issues/244
2019-02-09 03:42:24 +02:00
Mikael Sand
9e516a2098
Revert #755
...
Attempt to fix issues with removeChildren and manageChildren bugs,
causing exceptions from RCTUIManager
Related to #258 and #848
https://github.com/facebook/react-native/issues/23350
https://github.com/FormidableLabs/victory-native/issues/432
https://github.com/indiespirit/react-native-chart-kit/issues/62
https://github.com/JesperLekland/react-native-svg-charts/pull/280
https://github.com/JesperLekland/react-native-svg-charts/issues/244
2019-02-09 03:18:40 +02:00
Mikael Sand
abb17bc7f0
Fix re-rendering of emoji when path data is cached, closes #927
2019-02-08 03:19:21 +02:00
Mikael Sand
fa07f6ef8a
[ios] Workaround CGPathContainsPoint bug in iOS 12
...
https://github.com/react-native-community/react-native-svg/issues/794#issuecomment-461524902
https://stackoverflow.com/questions/54026261/cgpathcontainspoint-broken-in-ios-12-is-a-workaround-possible
2019-02-08 01:16:38 +02:00
Alex Lau
a841eec7b5
[ios] Fix active filtering in hitTest to return the last (top-most) view
2019-02-07 23:28:12 +08:00
Mark Lord
727a2d0937
During a LayoutAnimation.spring animation it's possible for the SvgView to have negative layout dimensions when used with 100% width/height. Check for negative dimensions before calling Bitmap.createBitmap.
2019-02-06 11:06:11 +00:00
Caleb Chiesa
9a250c0608
Prevents early rendering.
...
Related to #921 .
2019-02-04 11:53:01 -08:00
Mikael Sand
24e467d202
9.2.3
2019-02-04 02:37:37 +02:00
Mikael Sand
8cf4b8e695
[ios] fix hit testing of nested svg and invalidation on changes.
2019-02-04 02:37:14 +02:00
Mikael Sand
14791652ee
[android] fix hit testing of nested svg and invalidation on changes.
2019-02-04 01:38:13 +02:00
Mikael Sand
1be9188eb7
let > const
2019-02-03 04:07:29 +02:00
Mikael Sand
0f0a43f842
[android] Fix rendering of images, matrix transform applied twice
2019-02-03 04:07:13 +02:00
Mikael Sand
9de1d186a3
[android] Fix double rendering of nested svg
2019-02-03 04:06:42 +02:00
Mikael Sand
8c806cdc5f
9.2.2
2019-02-02 17:36:02 +02:00
Mikael Sand
ac2592d03a
Fix validation and use of pre-parsed svg defined colors on android.
...
Allow viewBox given as array of numbers
2019-02-02 17:35:53 +02:00
Mikael Sand
59adbe6759
9.2.1
2019-02-02 15:57:23 +02:00
Mikael Sand
a2d420c7e8
Fix handling of react-native style transform arrays on root Svg element
...
Simplify urlIdPattern
2019-02-02 15:57:11 +02:00
Mikael Sand
4f1b70d9b8
9.2.0
2019-02-02 02:23:10 +02:00
Mikael Sand
1c518c9896
Allow int32ARGBColor and use it to represent colors instead of rgbaArray
...
int32ARGBColor is 0xaarrggbb format to allow no processing
Optimize default fill handling
Improve gradient input validation
Simplify gradient extraction
Use a single array to represent gradient, with two numbers per stop
Reuse transform props in extractProps, short circuit identity transform.
[android] Refactor ImageView, fix mLoading
2019-02-02 02:20:26 +02:00
Mikael Sand
36cda8b706
9.1.1
2019-01-31 17:37:31 +02:00
Mikael Sand
7203228482
Fix brush color array handling
2019-01-31 17:37:28 +02:00
Mikael Sand
fe4fd7714a
9.1.0
2019-01-31 17:21:23 +02:00
Mikael Sand
f8e329c956
Optimize color extraction for pre-parsed values, update d.ts types.
2019-01-31 17:21:05 +02:00
Mikael Sand
f0211208c5
9.0.7
2019-01-30 17:14:28 +02:00
Mikael Sand
5ba7154086
Optimize transform extraction
2019-01-29 21:58:17 +02:00
Mikael Sand
4458b5122c
Optimize transform extraction, allow passing arrays to avoid parsing
2019-01-29 21:12:29 +02:00