expo-module-template 10.4.0 → 10.5.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/$package.json CHANGED
@@ -5,8 +5,13 @@
5
5
  "main": "build/<%- project.name %>.js",
6
6
  "types": "build/<%- project.name %>.d.ts",
7
7
  "scripts": {
8
- "build": "tsc",
9
- "lint": "eslint ."
8
+ "build": "expo-module build",
9
+ "clean": "expo-module clean",
10
+ "lint": "expo-module lint",
11
+ "test": "expo-module test",
12
+ "prepare": "expo-module prepare",
13
+ "prepublishOnly": "expo-module prepublishOnly",
14
+ "expo-module": "expo-module"
10
15
  },
11
16
  "keywords": ["react-native", "expo", "<%- project.slug %>", "<%- project.name %>"],
12
17
  "repository": "<%- repo %>",
@@ -18,7 +23,8 @@
18
23
  "homepage": "<%- repo %>#readme",
19
24
  "dependencies": {},
20
25
  "devDependencies": {
21
- "expo-module-scripts": "^2.0.0"
26
+ "expo-module-scripts": "^2.0.0",
27
+ "expo-modules-core": "^0.9.0"
22
28
  },
23
29
  "peerDependencies": {
24
30
  "expo": "*"
@@ -5,18 +5,18 @@ import expo.modules.kotlin.modules.ModuleDefinition
5
5
 
6
6
  class <%- project.name %>Module : Module() {
7
7
  override fun definition() = ModuleDefinition {
8
- name("<%- project.name %>")
8
+ Name("<%- project.name %>")
9
9
 
10
- function("helloAsync") { options: Map<String, String> ->
10
+ AsyncFunction("helloAsync") { options: Map<String, String> ->
11
11
  println("Hello 👋")
12
12
  }
13
13
 
14
- viewManager {
15
- view { context ->
14
+ ViewManager {
15
+ View { context ->
16
16
  <%- project.name %>View(context)
17
17
  }
18
18
 
19
- prop("name") { view: <%- project.name %>View, prop: String ->
19
+ Prop("name") { view: <%- project.name %>View, prop: String ->
20
20
  println(prop)
21
21
  }
22
22
  }
@@ -2,18 +2,18 @@ import ExpoModulesCore
2
2
 
3
3
  public class <%- project.name %>Module: Module {
4
4
  public func definition() -> ModuleDefinition {
5
- name("<%- project.name %>")
5
+ Name("<%- project.name %>")
6
6
 
7
- function("helloAsync") { (options: [String: String]) in
7
+ AsyncFunction("helloAsync") { (options: [String: String]) in
8
8
  print("Hello 👋")
9
9
  }
10
10
 
11
- viewManager {
12
- view {
11
+ ViewManager {
12
+ View {
13
13
  <%- project.name %>View()
14
14
  }
15
15
 
16
- prop("name") { (view: <%- project.name %>View, prop: String) in
16
+ Prop("name") { (view: <%- project.name %>View, prop: String) in
17
17
  print(prop)
18
18
  }
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-module-template",
3
- "version": "10.4.0",
3
+ "version": "10.5.0",
4
4
  "description": "ExpoModuleTemplate standalone module",
5
5
  "main": "build/ModuleTemplate.js",
6
6
  "types": "build/ModuleTemplate.d.ts",
@@ -22,11 +22,7 @@
22
22
  "license": "MIT",
23
23
  "homepage": "https://docs.expo.dev/versions/latest/sdk/module-template",
24
24
  "dependencies": {},
25
- "devDependencies": {
26
- "expo-module-scripts": "^2.0.0"
27
- },
28
- "peerDependencies": {
29
- "expo": "*"
30
- },
31
- "gitHead": "22dce752354bb429c84851bc4389abe47a766b1f"
25
+ "devDependencies": {},
26
+ "peerDependencies": {},
27
+ "gitHead": "0df2d4a2b2d494826ebd4355d4246bc66781c5b2"
32
28
  }