A react-native webview for displaying an NFT in a safe container.
Run yarn add @exodus/react-native-nft-viewer
react-native link @exodus/react-native-nft-viewer
iOS:
-
In Xcode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
-
Go to
node_modules
➜@exodus/react-native-nft-viewer
and addRNNFTViewer.xcodeproj
-
In Xcode, in the project navigator, select your project. Add
libRNNFTViewer.a
to your project'sBuild Phases
➜Link Binary With Libraries
-
To fix
'RNNFTViewerView.h' file not found
, you have to select your project → Build Settings → Search Paths → Header Search Paths and add:$(SRCROOT)/../node_modules/@exodus/react-native-nft-viewer/ios
import NFTViewer from "@exodus/react-native-nft-viewer";
const () => (
<NFTViewer
html={`<h1>hello</h1>`}
/>
)