@exodus/ react-native-nft-取景器
在安全容器中显示 NFT 的反应- 本地网络视图 .
内容
安装
第一步( 下载)
运行 pnpm add @exodus/react-native-nft-viewer
第二步( 管道安装)
自动安装
react-native link @exodus/react-native-nft-viewer
手动安装
iOS: (英语)
-
在Xcode中,在工程导航器中,右键点击
Libraries➜Add Files to [your project's name] -
转到
node_modules➜@exodus/react-native-nft-viewer添加RNNFTViewer.xcodeproj -
在Xcode中,在工程导航器中,选择您的项目. 添加
libRNNFTViewer.a到您的项目Build Phases➜Link Binary With Libraries -
修补
'RNNFTViewerView.h' file not found,您必须选择您的工程 – 构建设置 – 搜索路径 – 页眉搜索路径并添加:$(SRCROOT)/../node_modules/@exodus/react-native-nft-viewer/ios
使用量
import NFTViewer from "@exodus/react-native-nft-viewer";
const () => (
<NFTViewer
html={`<h1>hello</h1>`}
/>
)