react-native-unistyles 2.5.1 → 2.5.2
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.
@@ -21,7 +21,7 @@ class UnistylesModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
21
21
|
private var runnable: Runnable? = null
|
22
22
|
|
23
23
|
private var isCxxReady: Boolean = false
|
24
|
-
private
|
24
|
+
private lateinit var platform: Platform
|
25
25
|
private val layoutListener = ViewTreeObserver.OnGlobalLayoutListener {
|
26
26
|
if (this.isCxxReady) {
|
27
27
|
runnable?.let { drawHandler.removeCallbacks(it) }
|
@@ -112,6 +112,9 @@ class UnistylesModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
112
112
|
fun install(): Boolean {
|
113
113
|
return try {
|
114
114
|
System.loadLibrary("unistyles")
|
115
|
+
|
116
|
+
this.platform = Platform(reactApplicationContext)
|
117
|
+
|
115
118
|
val config = platform.getConfig()
|
116
119
|
val layoutConfig = platform.getLayoutConfig()
|
117
120
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-native-unistyles",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.2",
|
4
4
|
"description": "Level up your React Native StyleSheet",
|
5
5
|
"scripts": {
|
6
6
|
"test": "jest",
|
@@ -62,7 +62,7 @@
|
|
62
62
|
"@release-it/conventional-changelog": "8.0.1",
|
63
63
|
"@testing-library/react-hooks": "8.0.1",
|
64
64
|
"@types/jest": "29.5.11",
|
65
|
-
"@types/react": "18.2.
|
65
|
+
"@types/react": "18.2.71",
|
66
66
|
"@typescript-eslint/eslint-plugin": "6.16.0",
|
67
67
|
"@typescript-eslint/eslint-plugin-tslint": "6.16.0",
|
68
68
|
"@typescript-eslint/parser": "6.16.0",
|
@@ -109,6 +109,9 @@
|
|
109
109
|
"optional": true
|
110
110
|
}
|
111
111
|
},
|
112
|
+
"resolutions": {
|
113
|
+
"@types/mime": "3.0.4"
|
114
|
+
},
|
112
115
|
"workspaces": [
|
113
116
|
"examples/expo",
|
114
117
|
"examples/macos",
|