@matiks/rn-stroke-text 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,6 +49,9 @@ class StrokedTextLabel: UILabel {
49
49
  }
50
50
 
51
51
  override var intrinsicContentSize: CGSize {
52
+ guard let text = text, let font = font else {
53
+ return .zero
54
+ }
52
55
  var contentSize = super.intrinsicContentSize
53
56
  if customWidth > 0 {
54
57
  contentSize.width = customWidth
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matiks/rn-stroke-text",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "rn-stroke-text",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",