Accessing AccountKitConfigurationBuilder
Quadriphobs1 opened this issue · 3 comments
Issue Description
Accessing the private method AccountKitConfigurationBuilder
to custom configure the account functions. Especially setInitialPhoneNumber
Steps to Reproduce / Code Snippets
Making the AccountKitConfigurationBuilder a public method and pass it to the javascript engine
Additional Information
- Platform(s) (iOS, Android, or both?): both
Hi @Quadriphobs1, you can set the initial phone number using initialPhoneNumber
field when calling RNAccountKit.configure
method (see here).
Also you can set the initialPhoneCountryPrefix
if necessary (will be automatically detected if not).
Actually what I wanted was the option to show the phone number detected on device in modal and as the user to select which preferred to be pre-filled. I have seen it in several app which uses account-kit
and I am wondering if that option would do it or I have to do the tweeking myself
Even by setting
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
RNAccountKit.configure({
facebookNotificationsEnabled: true,
readPhoneStateEnabled: true,
receiveSMS: true,
});
the two options doesn't seems to work