expo-linear-gradient 11.3.0 → 11.4.0
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.
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 11.4.0 — 2022-07-07
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Migrated Expo modules definitions to the new naming convention. ([#17193](https://github.com/expo/expo/pull/17193) by [@tsapeta](https://github.com/tsapeta))
|
|
18
|
+
|
|
13
19
|
## 11.3.0 — 2022-04-18
|
|
14
20
|
|
|
15
21
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '11.
|
|
6
|
+
version = '11.4.0'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -74,7 +74,7 @@ android {
|
|
|
74
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
75
75
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
76
76
|
versionCode 17
|
|
77
|
-
versionName "11.
|
|
77
|
+
versionName "11.4.0"
|
|
78
78
|
}
|
|
79
79
|
lintOptions {
|
|
80
80
|
abortOnError false
|
|
@@ -7,31 +7,31 @@ typealias ViewType = LinearGradientView
|
|
|
7
7
|
|
|
8
8
|
class LinearGradientModule : Module() {
|
|
9
9
|
override fun definition() = ModuleDefinition {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
Name("ExpoLinearGradient")
|
|
11
|
+
ViewManager {
|
|
12
|
+
View { context ->
|
|
13
13
|
LinearGradientView(context)
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Prop("colors") { view: ViewType, colors: IntArray ->
|
|
17
17
|
view.setColors(colors)
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Prop("locations") { view: ViewType, locations: FloatArray? ->
|
|
21
21
|
locations?.let {
|
|
22
22
|
view.setLocations(it)
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Prop("startPoint") { view: ViewType, startPoint: Pair<Float, Float>? ->
|
|
27
27
|
view.setStartPosition(startPoint?.first ?: 0.5f, startPoint?.second ?: 0f)
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Prop("endPoint") { view: ViewType, endPoint: Pair<Float, Float>? ->
|
|
31
31
|
view.setEndPosition(endPoint?.first ?: 0.5f, endPoint?.second ?: 1f)
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Prop("borderRadii") { view: ViewType, borderRadii: FloatArray? ->
|
|
35
35
|
view.setBorderRadii(borderRadii ?: FloatArray(8) { 0f })
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -5,26 +5,26 @@ import ExpoModulesCore
|
|
|
5
5
|
|
|
6
6
|
public class LinearGradientModule: Module {
|
|
7
7
|
public func definition() -> ModuleDefinition {
|
|
8
|
-
|
|
8
|
+
Name("ExpoLinearGradient")
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
ViewManager {
|
|
11
|
+
View {
|
|
12
12
|
LinearGradientView()
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Prop("colors") { (view: LinearGradientView, colors: [CGColor]) in
|
|
16
16
|
view.gradientLayer.setColors(colors)
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Prop("startPoint") { (view: LinearGradientView, startPoint: CGPoint?) in
|
|
20
20
|
view.gradientLayer.setStartPoint(startPoint)
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Prop("endPoint") { (view: LinearGradientView, endPoint: CGPoint?) in
|
|
24
24
|
view.gradientLayer.setEndPoint(endPoint)
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Prop("locations") { (view: LinearGradientView, locations: [CGFloat]?) in
|
|
28
28
|
view.gradientLayer.setLocations(locations)
|
|
29
29
|
}
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-linear-gradient",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.4.0",
|
|
4
4
|
"description": "Provides a React component that renders a gradient view.",
|
|
5
5
|
"main": "build/LinearGradient.js",
|
|
6
6
|
"types": "build/LinearGradient.d.ts",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"expo": "*"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "e893ff2b01e108cf246cec02318c0df9d6bc603c"
|
|
43
43
|
}
|
package/tsconfig.json
CHANGED