mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
fix android reading
This commit is contained in:
@@ -37,6 +37,6 @@ class MainActivity : ReactActivity() {
|
||||
override fun onNewIntent(intent: Intent) {
|
||||
super.onNewIntent(intent)
|
||||
Log.d("MAIN_ACTIVITY", "onNewIntent: " + intent.action)
|
||||
// RNPassportReaderModule.Companion.getInstance().receiveIntent(intent);
|
||||
RNPassportReaderModule.getInstance().receiveIntent(intent)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -667,6 +667,10 @@ class RNPassportReaderModule(private val reactContext: ReactApplicationContext)
|
||||
private const val PARAM_DOE = "dateOfExpiry";
|
||||
const val JPEG_DATA_URI_PREFIX = "data:image/jpeg;base64,"
|
||||
private const val KEY_IS_SUPPORTED = "isSupported"
|
||||
var instance: RNPassportReaderModule? = null
|
||||
private var instance: RNPassportReaderModule? = null
|
||||
|
||||
fun getInstance(): RNPassportReaderModule {
|
||||
return instance ?: throw IllegalStateException("RNPassportReaderModule instance is not initialized")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user