Commit Graph

854 Commits

Author SHA1 Message Date
Ben Roth
5f74c92a58 Namespaces or un-globalifies a handful more iOS globals 2018-02-16 17:14:10 -08:00
Mikael Sand
0c0c9c122d 6.2.1 2018-02-15 13:29:54 +02:00
Mikael Sand
13487029c0 Fix paths. 2018-02-15 13:29:32 +02:00
Mikael Sand
63776eb033 6.2.0 《雞飛除舊歲 狗來旺新年》𧫴祝闔家吉祥,和樂安康! 2018-02-15 11:47:15 +02:00
Mikael Sand
db012f89f6 Merge pull request #604 from expo/@terribleben/namespace-ios-symbols
Prefix iOS symbols with RNSVG
2018-02-15 11:43:18 +02:00
Ben Roth
b217dcaff8 Prefix iOS symbols with RNSVG
fixes https://github.com/react-native-community/react-native-svg/issues/603
2018-02-14 19:04:32 -08:00
Mikael Sand
354f8c2719 6.1.4 2018-02-13 19:57:48 +02:00
Mikael Sand
7cc77bb1d1 Update README 2018-02-13 19:55:49 +02:00
Mikael Sand
1e7586037c Merge pull request #602 from expo/ns-enum
Add "typedef" to NS_ENUM declarations, fix duplicate symbol error
2018-02-13 18:58:23 +02:00
James Ide
10f8134dab Add "typedef" to NS_ENUM declarations, fix duplicate symbol error
NS_ENUM is designed to go with typedef c.f. Apple docs: https://developer.apple.com/library/content/releasenotes/ObjectiveC/ModernizationObjC/AdoptingModernObjective-C/AdoptingModernObjective-C.html#//apple_ref/doc/uid/TP40014150-CH1-SW6

Fixes #579
2018-02-12 18:14:04 -08:00
Mikael Sand
cc77c83956 Update Example reference 2018-02-12 01:34:50 +02:00
Mikael Sand
9af4b966aa Update README.md 2018-02-04 02:35:16 +02:00
Mikael Sand
5a643317a2 6.1.3 2018-02-04 00:34:12 +02:00
Mikael Sand
0888c0fe7c Follow version recommendation https://www.npmjs.com/package/prop-types#how-to-depend-on-this-package 2018-02-04 00:34:03 +02:00
Mikael Sand
7a7fd8bb75 6.1.2 2018-02-04 00:04:36 +02:00
Mikael Sand
0b25bec695 Relax prop-types peer-dependency. 2018-02-04 00:04:12 +02:00
Mikael Sand
d9f9a2caf6 6.1.1 2018-02-03 23:22:36 +02:00
Mikael Sand
31c137ca40 Commit missing files. 2018-02-03 23:22:21 +02:00
Mikael Sand
8d7e9d3c3c 6.1.0 2018-02-03 20:53:19 +02:00
Mikael Sand
1c12e4bd04 Align SDK and gradle with react-native init
Remove com.android.support:appcompat-v7 dependency (less version issues)
Copy PaintCompat.hasGlyph implementation verbatim.
It is the only really needed part.

Minimize issues for beginners and make first experience maximally smooth
2018-02-03 20:52:49 +02:00
Mikael Sand
be81454041 Fix strokeWidth hitArea units calculation 2018-02-03 20:09:36 +02:00
Mikael Sand
26b9bf4cb7 Merge pull request #586 from msand/numberPercentageRegEx
Support exponential syntax in number and percentage regular expression.
2018-02-03 20:07:47 +02:00
Mikael Sand
e66a0fdcb0 Merge pull request #577 from simonbuchan/ts-export-props
Add exports for prop types, additional type fixes.
2018-02-03 20:07:24 +02:00
Mikael Sand
5c5867485e Merge pull request #588 from dlowder-salesforce/master
Fix tvOS compile issue (BezierElement.m)
2018-02-03 20:06:00 +02:00
Simon Buchan
f8c5b6b274 TextSpecificProps are optional. 2018-02-01 22:13:21 +13:00
Douglas Lowder
27f0245110 Fix tvOS compile issue (BezierElement.m) 2018-01-26 23:08:39 -08:00
Mikael Sand
85c1a23b6c Support exponential syntax in number and percentage regular expression. 2018-01-25 12:47:30 +02:00
Mikael Sand
ba641f79eb Update README.md
Fix rotation prop documentation.
2018-01-23 01:52:11 +02:00
Simon Buchan
815b842fe5 Extract font/text related typings from props.js, ReadonlyArray<> 2018-01-22 22:07:39 +13:00
Simon Buchan
52ec33ebb7 More fixes:
- Definitions have an `id`, not a `name`.
- There is no `Shape` export.
- `Use` `width` and `height` are required.
2018-01-22 20:17:40 +13:00
Mikael Sand
1fee877da4 Update README.md
Clarify CocoaPods instructions
2018-01-21 16:55:53 +02:00
Mikael Sand
8e9fa8760c Merge pull request #582 from react-native-community/gradle3
Fix linting and gradle 3.0.1 compatibility
2018-01-19 18:37:37 +02:00
Mikael Sand
4ef100cee5 Bump version. 2018-01-19 18:34:15 +02:00
Mikael Sand
a77d104a51 Fix linting and gradle 3.0.1 compatibility 2018-01-19 17:53:08 +02:00
Mikael Sand
7e6de5f3cf Update README.md
Add instructions for cocoapods
2018-01-19 13:53:11 +02:00
Simon Buchan
e37433c19c Fix some existing type definitions:
It seems like these were already wrong?
- `Symbols` -> `Symbol`
- `Use` errors unless `width` and `height` are string?
- `Svg` errors if `width` and `height` are not provided?
2018-01-18 16:12:44 +13:00
Simon Buchan
ed1ab61f59 Add exports for prop types, additional type fixes.
Also:
- Extracts and exports the string enum types
- Adds or renames prop types such that every `Foo`
  component export also has a `FooProps`
- Adds non-default export of `Svg`, so `import * as Svg ...`
  is usable.
- Makes `RadialGradientProps.gradientUnits` optional, like
  for `LinearGradientProps.gradientUnits`.
- Adds stronger type for `TransformProps.transform` based
  on code in `extractTranform.js` (please double-check!)
- Fixes typo in `DefinationProps` name.
- A handful of minor formatting normalizations.
2018-01-18 14:53:06 +13:00
Mikael Sand
5e05c21f2a Update README.md
Fix demo link and linking instructions.
2018-01-18 00:49:58 +02:00
Mikael Sand
22a43c8fd9 Bump version. 2018-01-17 21:36:19 +02:00
Mikael Sand
60fdf93ec2 Merge pull request #575 from glacjay/patch-1
fix an "out of range" error
2018-01-17 21:28:34 +02:00
Mikael Sand
a10d06cb5a Merge pull request #558 from msand/tailormade_distance_along_path
Implement tailor made data structure and logic for text on a path, and various bugfixes.
2018-01-17 19:50:40 +02:00
GlacJAY
218b4cf610 fix an "out of range" error
The half of a char in java has a range of [0, 255], so the array's length should be 256.
2018-01-17 15:33:54 +08:00
Christopher Powroznik
2191656fa2 added missing class and offset (#553) 2018-01-11 20:36:30 -08:00
Mikael Sand
4e37a48e6e Fix Use of const in strict mode 2018-01-05 12:13:58 +02:00
Mikael Sand
84beda169c Fix image rendering and ligature advance on android 2018-01-05 01:48:19 +02:00
Mikael Sand
b9d37ac897 Fix parsing of floatingPointConstants in transformParser
Relax transforms commaWsp requirement from one or more to zero or more.
2018-01-03 23:05:05 +02:00
Mikael Sand
310fbed841 Fix image rendering 2018-01-03 20:30:36 +02:00
Mikael Sand
83d00d09db Optimize and improve accuracy of textPath. 2018-01-02 23:39:58 +02:00
Mikael Sand
4a8808b0fb Fix handling of combined ligatures and kerning.
Remove hasGlyph helper and ligature tracking array.
Use single call to:
 - CFAttributedStringCreate
 - CTLineCreateWithAttributedString
and a call per bi-di/layout run to:
 - CTRunGetGlyphs for glyphs
 - CTFontGetAdvancesForGlyphs for advances
 - CTRunGetStringIndices for indices of ligatures
And an efficient loop over the substituted characters of ligatures,
to make glyph context calls for incrementing the attribute indices.
2018-01-02 23:17:04 +02:00
Mikael Sand
17a66f3c2c Fix ligature glyph advance value calculation on ios 2017-12-31 15:36:26 +02:00