This guide explains how to install the Wepin React Native Provider
Requirements
Android API version 24 or newer is required.
iOS version 13 or newer is required.
This package is only available for Android and iOS environments. It is not supported on Web, macOS, Windows, or Linux environments.
New Architecture is not supported yet
Installation
It can be installed as an npm package.
npminstall@wepin/provider-rn
yarnadd@wepin/provider-rn
peerDependencies
npminstallreact-native-device-info# for ioscdiospodinstall
npminstallreact-native-device-info# for ioscdiospodinstall
Configuration
To enable OAuth login functionality, you need to configure the Deep Link Scheme.
Deep Link scheme format : wepin. + Your Wepin App ID
Android
When a custom scheme is used, Wepin Provider Library can be easily configured to capture all redirects using this custom scheme through a manifest placeholder in the file build.gradle(app):
iOS
You must add the app's URL scheme to the Info.plist file. This is necessary for redirection back to the app after the authentication process.
The value of the URL scheme should be 'wepin.' + your Wepin app id.
iOS Podfile Configuration
Build errors may occur when using Xcode 26.0.1 or later versions.
error Unable to find module dependency: 'bcrypt' (in target 'WepinLogin' from project 'Pods')
If you encounter the above error, please add the following code to your Podfile.
// For Deep Link => RedirectScheme Format : wepin. + Wepin App ID
android.defaultConfig.manifestPlaceholders = [
'appAuthRedirectScheme': 'wepin.{{YOUR_WEPIN_APPID}}'
]
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_ENABLE_EXPLICIT_MODULES'] = 'NO'
end
end
end