@ion299/sdk-react-native 0.1.0-beta.1 → 0.1.0-beta.3

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.
@@ -30,7 +30,7 @@ class ChatSdkFilePickerModule(reactContext: ReactApplicationContext) :
30
30
 
31
31
  private val activityEventListener = object : BaseActivityEventListener() {
32
32
  override fun onActivityResult(
33
- activity: Activity?,
33
+ activity: Activity,
34
34
  requestCode: Int,
35
35
  resultCode: Int,
36
36
  data: Intent?,
@@ -74,7 +74,7 @@ class ChatSdkFilePickerModule(reactContext: ReactApplicationContext) :
74
74
 
75
75
  @ReactMethod
76
76
  fun pick(options: ReadableMap, promise: Promise) {
77
- val activity = currentActivity
77
+ val activity = getCurrentActivity()
78
78
  if (activity == null) {
79
79
  promise.reject("NO_ACTIVITY", "Нет активной Activity")
80
80
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ion299/sdk-react-native",
3
- "version": "0.1.0-beta.1",
3
+ "version": "0.1.0-beta.3",
4
4
  "description": "React Native SDK for Chat Platform",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/module/index.js",
@@ -43,9 +43,24 @@
43
43
  "source": "src",
44
44
  "output": "lib",
45
45
  "targets": [
46
- ["commonjs", { "esm": true }],
47
- ["module", { "esm": true }],
48
- ["typescript", { "project": "tsconfig.build.json" }]
46
+ [
47
+ "commonjs",
48
+ {
49
+ "esm": true
50
+ }
51
+ ],
52
+ [
53
+ "module",
54
+ {
55
+ "esm": true
56
+ }
57
+ ],
58
+ [
59
+ "typescript",
60
+ {
61
+ "project": "tsconfig.build.json"
62
+ }
63
+ ]
49
64
  ]
50
65
  },
51
66
  "peerDependencies": {
@@ -59,17 +74,13 @@
59
74
  "react-native-builder-bob": "^0.40.0",
60
75
  "del-cli": "^5.1.0"
61
76
  },
62
- "keywords": ["chat", "sdk", "react-native"],
63
- "repository": {
64
- "type": "git",
65
- "url": "git+https://github.com/YOUR_GITHUB_USERNAME/chat-platform-sdk-rn-test.git"
66
- },
67
- "homepage": "https://github.com/YOUR_GITHUB_USERNAME/chat-platform-sdk-rn-test#readme",
68
- "bugs": {
69
- "url": "https://github.com/YOUR_GITHUB_USERNAME/chat-platform-sdk-rn-test/issues"
70
- },
77
+ "keywords": [
78
+ "chat",
79
+ "sdk",
80
+ "react-native"
81
+ ],
71
82
  "publishConfig": {
72
83
  "access": "public"
73
84
  },
74
85
  "license": "UNLICENSED"
75
- }
86
+ }