Commit Graph
1565 Commits
Author SHA1 Message Date
Mikael Sand 45b0859b7f fix(ios): Fix image size when calling getDataURL with bounds. fixes #855
UIGraphicsBeginImageContextWithOptions third argument was incorrect:

https://developer.apple.com/documentation/uikit/1623912-uigraphicsbeginimagecontextwitho
The scale factor to apply to the bitmap. If you specify a value of 0.0,
the scale factor is set to the scale factor of the device’s main screen.
2019-11-06 19:35:03 +02:00
Mikael SandandGitHub ea29b02000 Merge pull request #724 from react-native-community/bidi
feat(android): Bidi
2019-10-29 19:11:29 +02:00
Mikael Sand 0cc5330d60 [android] Initial work on Bidi and arabic font features 2019-10-29 17:54:47 +02:00
semantic-release-bot 29dd8a43df chore(release): 9.13.3 [skip ci]
## [9.13.3](https://github.com/react-native-community/react-native-svg/compare/v9.13.2...v9.13.3) (2019-10-25)

### Bug Fixes

* **android:** Image onPress [#1170](https://github.com/react-native-community/react-native-svg/issues/1170) ([5c967b7](https://github.com/react-native-community/react-native-svg/commit/5c967b7c6992246ebd602e9a86d2544f0662ce10))
2019-10-25 21:37:48 +03:00
Mikael Sand 8b578929bc Merge branch 'develop' 2019-10-25 21:35:57 +03:00
Mikael Sand 18036efc3c deps: upgrades 2019-10-25 21:34:32 +03:00
Mikael Sand 5c967b7c69 fix(android): Image onPress #1170 2019-10-25 21:23:55 +03:00
Mikael SandandGitHub ef7682f34e Merge pull request #1167 from iqqmuT/css_readme
Readme update: Support for CSS
2019-10-24 00:52:07 +03:00
Tuomas Jaakola 98d27837f9 readme: css support 2019-10-24 00:43:08 +03:00
Tuomas Jaakola efd4c012d9 cleaning readme 2019-10-24 00:04:02 +03:00
semantic-release-bot 021b1a864c chore(release): 9.13.2 [skip ci]
## [9.13.2](https://github.com/react-native-community/react-native-svg/compare/v9.13.1...v9.13.2) (2019-10-23)

### Bug Fixes

* make css-select and css-tree dependencies instead of peers ([957914d](https://github.com/react-native-community/react-native-svg/commit/957914d59b27e22121d13f13cb54a051b893b446)), closes [#1166](https://github.com/react-native-community/react-native-svg/issues/1166)
2019-10-23 21:21:43 +03:00
Mikael Sand 957914d59b fix: make css-select and css-tree dependencies instead of peers
fixes #1166

metro tries to resolve the dependencies,
even if the components which are using them are not used / imported.
2019-10-23 21:21:10 +03:00
semantic-release-bot f24dd66799 chore(release): 9.13.1 [skip ci]
## [9.13.1](https://github.com/react-native-community/react-native-svg/compare/v9.13.0...v9.13.1) (2019-10-23)

### Bug Fixes

* update flow types ([a50a856](https://github.com/react-native-community/react-native-svg/commit/a50a85671ea94e616eff761346875701f95d90ec))
2019-10-23 20:28:31 +03:00
Mikael Sand a50a85671e fix: update flow types 2019-10-23 20:27:12 +03:00
semantic-release-bot 8c1a1737b0 chore(release): 9.13.0 [skip ci]
# [9.13.0](https://github.com/react-native-community/react-native-svg/compare/v9.12.0...v9.13.0) (2019-10-23)

### Bug Fixes

* camelCase css from style elements ([9ee5a28](https://github.com/react-native-community/react-native-svg/commit/9ee5a28b37edf403c503aed4f37edbaebe201eb0))
* don't overwrite inline styles when inlining style elements ([6e1d825](https://github.com/react-native-community/react-native-svg/commit/6e1d8257a4b42b9888a6374ae203f07a932ca96f))
* handle basic css media query selectors ([168ee25](https://github.com/react-native-community/react-native-svg/commit/168ee25ee4b193d85757e01b20840baf54872cfc))
* handle style elements with CDATA ([b3fca84](https://github.com/react-native-community/react-native-svg/commit/b3fca84fb1b9091246310270d64dcef730ee05a9))
* improve style element inlining, support more selectors and optimize ([8c9de72](https://github.com/react-native-community/react-native-svg/commit/8c9de72bda2a4e00efb1747f7c8e922fac92e194))
* improve types for extractTransform ([a37ebbb](https://github.com/react-native-community/react-native-svg/commit/a37ebbbb1559b337b58327f79819c494029597fa))
* only compute selector specificity once per selector ([9f53e31](https://github.com/react-native-community/react-native-svg/commit/9f53e31b24c940052a8d25671f92074194856f05))
* types for css support ([c969159](https://github.com/react-native-community/react-native-svg/commit/c96915923e784607b14b7f437ae4dd58c31bde36))
* use correct import in test ([a57963e](https://github.com/react-native-community/react-native-svg/commit/a57963eb4d3ec0c1645bf4251cf2b54507441532))

### Features

* implement experiment to inline css from style elements ([5f3852b](https://github.com/react-native-community/react-native-svg/commit/5f3852bf9cb41e79d50a4fcb800fdd7ba895f023))
* implement SvgWithCss and SvgWithCssUri with Animated support ([6fb8dd5](https://github.com/react-native-community/react-native-svg/commit/6fb8dd53dba5af19ffc8f686a6310182fca87fd3))
2019-10-23 19:18:57 +03:00
Mikael Sand 6fb8dd53db feat: implement SvgWithCss and SvgWithCssUri with Animated support
Expose types of SvgCss, SvgWithCss, SvgCssUri & SvgWithCssUri
Move css-select and css-tree to peerDependencies & devDependencies
2019-10-23 19:13:57 +03:00
Mikael Sand 7370225005 tests: upgrade travis node.js version from 10 to 12 2019-10-23 17:51:58 +03:00
Mikael Sand b1c0a43e9a tests: add test for combining parse with inlineStyles 2019-10-23 17:43:41 +03:00
Mikael Sand fdd1698f73 Merge remote-tracking branch 'origin/develop' into css 2019-10-23 17:31:17 +03:00
Mikael Sand 9211b1e916 Merge remote-tracking branch 'origin/master' into develop 2019-10-23 17:29:02 +03:00
Mikael SandandGitHub c3be11b032 Merge pull request #1156 from SaeedZhiany/patch-1
Load Android Gradle Plugin conditionally
2019-10-23 17:03:52 +03:00
Mikael SandandGitHub c57c92ee7b Merge pull request #1157 from iqqmuT/css_test
Test case for CSS support
2019-10-23 16:46:14 +03:00
Mikael SandandGitHub 2b13907f5b Merge pull request #1161 from amandeepmittal/patch-1
docs: update with Expo installation steps
2019-10-23 16:32:03 +03:00
Tuomas Jaakola 614233786c merge conflict resolved 2019-10-22 12:32:02 +03:00
Mikael Sand 017ba70fcd refactor: remove need for inline disabling of linting 2019-10-22 02:01:42 +03:00
Mikael Sand 64d68a7673 refactor: specialize sorting types 2019-10-22 01:19:58 +03:00
Mikael Sand 9f53e31b24 fix: only compute selector specificity once per selector 2019-10-22 00:12:02 +03:00
Mikael Sand 168ee25ee4 fix: handle basic css media query selectors 2019-10-21 23:51:03 +03:00
Mikael Sand 091ca82900 refactor: vendor stable and optimize 2019-10-21 22:50:56 +03:00
Mikael Sand 2c894625c7 refactor: refine types, optimize adapter 2019-10-21 22:26:46 +03:00
Mikael Sand 827b0c43c6 refactor: refine types 2019-10-21 20:48:27 +03:00
Mikael Sand 10c2d0ee64 refactor: refine types 2019-10-21 19:38:29 +03:00
Mikael Sand c59654c2dc refactor: remove css-select-base-adapter dependency 2019-10-21 19:13:52 +03:00
Aman MittalandGitHub 997b0c3580 docs: update with Expo installation steps
Resolves #1159
2019-10-21 20:44:34 +05:30
Tuomas Jaakola 02e725948b merge conflict with package-lock.json, refreshed 2019-10-21 18:09:00 +03:00
Mikael Sand 744354aa21 refactor: simplify initializing styles, simpler and stricter types 2019-10-21 18:06:00 +03:00
Tuomas Jaakola 98e90602a2 run 'npm test' in Travis CI, package-lock.json updated 2019-10-21 18:05:57 +03:00
Tuomas Jaakola 4e46fbb4c6 Merge branch 'css' into css_test 2019-10-21 17:47:33 +03:00
Mikael Sand c96915923e fix: types for css support 2019-10-21 17:01:28 +03:00
Tuomas Jaakola a57963eb4d fix: use correct import in test 2019-10-21 11:12:33 +03:00
Tuomas Jaakola 8ebd84f792 test case for css support 2019-10-21 10:57:20 +03:00
SaeedZhianyandGitHub d3b2f27e22 Load Android Gradle Plugin conditionally 2019-10-21 09:11:01 +03:30
Mikael Sand c899670c44 refactor: optimize style element inlining, inline setProperty 2019-10-20 23:21:20 +03:00
Mikael Sand 91912516fc refactor: optimize style element inlining
Only walk style rule declarations once, only generate value once,
while only setting value once per matched element.
2019-10-20 23:11:43 +03:00
Mikael Sand 1c778e475d refactor: restructure for readability / group related logic 2019-10-20 22:50:04 +03:00
Mikael Sand c0592aa403 refactor: simplify style element inlining setProperty and priorities 2019-10-20 22:36:59 +03:00
Mikael Sand 3fdf621f56 refactor: simplify style element inlining 2019-10-20 21:37:12 +03:00
Mikael Sand ee4b0d51f1 refactor: optimize style element inlining 2019-10-20 20:41:57 +03:00
Mikael Sand 8c9de72bda fix: improve style element inlining, support more selectors and optimize 2019-10-20 20:25:40 +03:00
Mikael Sand 0d4f91d3f1 refactor: simplify inlining css from style elements 2019-10-20 19:05:59 +03:00