We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c8c833 commit b275de2Copy full SHA for b275de2
example/src/App.tsx
@@ -644,6 +644,32 @@ const App = () => {
644
}}
645
color={inprogress ? 'green' : 'blue'}
646
/>
647
+
648
649
+ <Button
650
+ title={inprogress ? 'Putting & Getting...' : 'Test Replicate'}
651
+ onPress={async () => {
652
+ try {
653
+ chainApi.init().then((api: any) => {
654
+ console.log('api created');
655
+ if (api && initComplete) {
656
+ console.log('replicate');
657
+ fula
658
+ .replicateRecentCids(api, seed, 3)
659
+ .then((res: any) => {
660
+ console.log('res received');
661
+ console.log(res);
662
+ })
663
+ .catch((e: any) => {
664
+ console.log('res failed');
665
+ console.log(e);
666
+ });
667
+ }
668
669
+ } catch (e) {}
670
+ }}
671
+ color={inprogress ? 'green' : 'blue'}
672
+ />
673
</View>
674
675
);
0 commit comments