-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: connect wallet #16
fix: connect wallet #16
Conversation
packages/utils/src/network.ts
Outdated
@@ -26,6 +26,7 @@ export function getBrowserOnlineStatus() { | |||
export async function getReactNativeOnlineStatus(): Promise<boolean> { | |||
// global.NetInfo is set in react-native-compat | |||
if (isReactNative() && typeof global !== "undefined" && (global as any)?.NetInfo) { | |||
return true; // TODO: discuss on adding react-native-community/netinfo |
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.
@matias-la react-native-community/netinfo is needed for this. what'd be best action here ?
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.
repace with @exodus/netinfo
?
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.
@ezenwankwogabriel yeah, we have @exodus/[email protected]
audited - you can give it a try
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.
utACK
Agree that we should use the netinfo
fork, or directly to just get rid of the dependency
This reverts commit 137ad4b.
- @exodus/netinfo uses isconnected.fetch()
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.
utACK
4fab931
into
gabriel/upgrade-fork-2.11.0
Description
Fixes error on connecting wallet from the package bumps
Please include a brief summary of the change.
Type of change
How has this been tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your configuration.
Fixes/Resolves (Optional)
Please list any issues that are fixed by this PR in the format
#<issue number>
. If it fixes multiple issues, please put each issue in a separate line. If this Pull Request does not fix any issues, please delete this section.Examples/Screenshots (Optional)
Please attach a screenshot or screen recording of features/fixes you've implemented to verify your changes. Please also note any relevant details for your configuration. If your changes do not affect the UI, please delete this section.
Use this table template to show examples of your changes:
Checklist
Additional Information (Optional)
Please include any additional information that may be useful for the reviewer.