-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native-sdk: add swarm connect to ipfs api #159
Conversation
Signed-off-by: Li Zheng <[email protected]>
Signed-off-by: Li Zheng <[email protected]>
Signed-off-by: Li Zheng <[email protected]>
@asutula , since android-textile has been set to v2.0.9 and ios-textile has been set to v2.0.11 , it's possible to merge this PR 😝 |
@@ -39,6 +39,25 @@ public void run() { | |||
}); | |||
} | |||
|
|||
@ReactMethod | |||
public void connect(final String multiaddr, final Promise promise) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just update this to swarmConnect
everywhere for consistency with the native sdks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just named it for consistency with the js-http-client sdk , ref to https://github.com/textileio/js-http-client/blob/5f8b3a421ca682b3ba5ed3d4af96bca1d0913a39/src/modules/ipfs.ts#L58 ... So should we still update this to swarmConnect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, that makes sense. Let's just leave this as is then.
Ok 3.0.13 is released! |
Add
swarm connect
to Update React Native APIs to match more closely the JS and Rest APINeed PR:
android-textile: add swarm connect to ipfs api and set android-textile to v2.0.9
ios-textile: add swarm connect to ipfs api and set ios-textile to v2.0.11