跳到主要内容

安装SDK

最后更新:2024/06/05

了解如何下载和安装ReactNative TurboLink SDK

📘 SDK概况

npmjs.com Repository:https://www.npmjs.com/package/react-native-turbolink
SDK Size: 138kb
Min. OS Version:

  • Android: 21+
  • iOS:12+

安装SDK

通过npm安装

添加dependencies

step.1 Add the dependency

查看最新的ReactNative SDK包:HERE_LATEST_VERSION
在项目package.json文件,dependencies处添加:

//"dependencies": {
"react-native-turbolink": "<HERE_LATEST_VERSION>"
//}

执行npm install

或命令添加:

npm install react-native-turbolink --save

step.2 执行iOS pod

cd ios && pod install
import TurboLink from 'react-native-turbolink';