Native Modules Setup
Android Setup
1. MainActivity Configuration
import com.selfxyz.selfSDK.RNSelfPassportReaderModule
import android.content.Intent
import android.util.Log
class MainActivity : ReactActivity() {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
Log.d("MAIN_ACTIVITY", "onNewIntent: " + intent.action)
try {
RNSelfPassportReaderModule.getInstance().receiveIntent(intent)
} catch (e: IllegalStateException) {
Log.w("MAIN_ACTIVITY", "RNSelfPassportReaderModule not ready; deferring NFC intent")
setIntent(intent)
}
}
}2. MainApplication Configuration
3. Android Manifest Permissions
4. NFC Meta Data
5. Build Configuration
iOS Setup
1. Enable NFC Capability
2. Info.plist Permissions
3. Podfile Configuration
Installation
Last updated