Skip to content

Commit cd805a0

Browse files
authored
feat: support react native 0.81 (#12)
1 parent ecbb3fb commit cd805a0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

android/src/main/java/so/onekey/app/wallet/lite/OKLiteManager.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ class OKLiteManager(private val context: ReactApplicationContext) :
5252
private var mCurrentCardState: CardState? = null
5353

5454
private val mActivityEventListener = object : BaseActivityEventListener() {
55-
override fun onNewIntent(intent: Intent?) {
55+
override fun onNewIntent(intent: Intent) {
5656
super.onNewIntent(intent)
57-
val action = intent?.action
57+
val action = intent.action
58+
if (action == null) {
59+
return
60+
}
5861
if ((action == NfcAdapter.ACTION_NDEF_DISCOVERED)
5962
|| action == NfcAdapter.ACTION_TECH_DISCOVERED
6063
|| action == NfcAdapter.ACTION_TAG_DISCOVERED

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onekeyfe/react-native-lite-card",
3-
"version": "1.0.14",
3+
"version": "1.0.15",
44
"description": "lite card",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)