在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipfs-shipyard/react-native-ipfs-demo开源软件地址:https://github.com/ipfs-shipyard/react-native-ipfs-demo开源编程语言:JavaScript 58.9%开源软件介绍:IPFS React Native Demo AppThis project explores and documents how IPFS' HTTP client can be used in a React Native app targeting Android and iOS platforms. UsageSpawn a local IPFS node with the Run the app on Android$ npm run android:debug $ npm run android:release In order connect to the IPFS node running on your development machine when running the app on a physical device with USB debugging enabled, run the following command: $ adb -s <device name> reverse tcp:5002 tcp:5002 To find the device name, run the following $ adb devices Sources:
Run the app on iOSnpm run ios:debug npm run ios:release In order connect to the IPFS node running on your development machine when running the app on a physical iPhone, you must use the LAN IP of your machine. Also, note that In order to run the app on a physical iPhone, you must create and setup an Apple Developer Certificate. ConfigurationIf you need to change the input URLs for the HTTP client factory on both Android and iOS, you can do so by editing config.js file. Feel free to tweak the parameters (CIDs, multiaddr, etc.) for each HTTP client method by editing the corresponding code in each screen. Requirements to use HTTP client
The environment must be polyfilled right when your app starts and before anything is rendered. Alternative fetch polyfillInstead of using the fetch implementation that ships with React Native, which is provided by GitHub's fetch polyfill, this demo is now using Known issues and limitations
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论