
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@ichong/react-native-sy
Advanced tools
集成闪验一键登录SDK
为开源事业做一份绵薄之力,欢迎加入群:161263093
作者:zhangzy QQ:289459798 微信:zhangzy816
react-native 版本 > 0.6

$ npm install git+https://gitee.com/petdoctor/react-native-sy.git --save
$ react-native link react-native-sy
Libraries ➜ Add Files to [your project's name]node_modules ➜ react-native-sy and add RNSy.xcodeprojlibRNSy.a to your project's Build Phases ➜ Link Binary With LibrariesCmd+R)<android/app/src/main/java/[...]/MainActivity.javaimport com.ichong.zzy.sy.RNSyPackage; to the imports at the top of the filenew RNSyPackage() to the list returned by the getPackages() methodandroid/settings.gradle:
include ':react-native-sy'
project(':react-native-sy').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sy/android')
android/app/build.gradle:
compile project(':react-native-sy')
import Sy from '@ichong/react-native-sy';
// 在入口文件的js里面,初始化
Sy.init(Config.Sy.AppId, Config.DEBUG, (code, data) => {
if (code != 1000) {
console.log('闪验初始化失败:', data);
}
});
// 在登录页面,调用一键登录,目前已弹窗形式
Sy.login((res, data) => {
if (res == 1000) {
// 业务代码,server 端用token获取手机号码
console.log(data.token)
} else {
console.error(data);
}
})
FAQs
## Getting started
We found that @ichong/react-native-sy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.