golia-expo-utils 1.0.6 → 1.0.7

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.
@@ -83,7 +83,16 @@ class ReactSegmentedControl(context: Context, appContext: AppContext) :
83
83
  isContentSet = true
84
84
  }
85
85
 
86
+ composeView.visibility = VISIBLE
86
87
  requestLayout()
88
+ post {
89
+ measure(
90
+ MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
91
+ MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY)
92
+ )
93
+ layout(left, top, right, bottom)
94
+ invalidate()
95
+ }
87
96
  }
88
97
 
89
98
  override fun onDetachedFromWindow() {
@@ -108,7 +108,16 @@ class ReactWaterView(context: Context, appContext: AppContext) : ExpoView(contex
108
108
  }
109
109
 
110
110
  // 4. 请求布局刷新
111
+ composeView.visibility = VISIBLE
111
112
  requestLayout()
113
+ post {
114
+ measure(
115
+ MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
116
+ MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY)
117
+ )
118
+ layout(left, top, right, bottom)
119
+ invalidate()
120
+ }
112
121
  }
113
122
 
114
123
  override fun onDetachedFromWindow() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "golia-expo-utils",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "expo utils provided by golia.jp",
5
5
  "main": "build/index.js",
6
6
  "homepage": "https://expo.golia.jp/golia-expo-utils",