Comments (6)
@alsakhaev we released a new alpha version that reuses the existing session automatically 💪 Closing the issue.
from web3modal-react-native.
Hey @alsakhaev, we've just created a PR to reuse the existing session. After that merge, the session will load automatically
from web3modal-react-native.
This still doesn't work for me.
provider is undefined until the open function is called.
from web3modal-react-native.
Hey @taibenvenuti 👋 are you using the last version of the SDK? Can you upload the piece of code where you render the Web3Modal
component?
from web3modal-react-native.
Yes I updated to alpha3
import './expo-crypto-shim.js';
import '@walletconnect/react-native-compat';
import '@ethersproject/shims';
import { ThemeProvider } from './src/styles/ThemeContext';
import { Navigation } from './src/navigation/Navigation';
import { Provider } from 'react-redux';
import { persistor, store } from './src/store/store';
import { PersistGate } from 'redux-persist/integration/react';
import { AuthenticationProvider } from './src/services/AuthenticationContext';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { Web3Modal } from '@web3modal/react-native';
import { PROJECT_ID } from '@env';
import { AssetsProvider } from './src/services/AssetsContext';
import { providerMetadata } from './src/Config';
export default function App() {
return (
<Provider store={store}>
<Web3Modal projectId={PROJECT_ID} providerMetadata={providerMetadata} />
<PersistGate loading={null} persistor={persistor}>
<ThemeProvider>
<AuthenticationProvider>
<AssetsProvider>
<SafeAreaProvider style={{ margin: 0 }}>
<Navigation />
</SafeAreaProvider>
</AssetsProvider>
</AuthenticationProvider>
</ThemeProvider>
</PersistGate>
</Provider>
);
}
from web3modal-react-native.
@taibenvenuti When <Web3Modal />
renders, it initializes the provider and automatically restores the connection with the wallet (if exists).
If you didn't connect with a wallet before, when you open the modal a new session is created but it wont be saved unless you actually connect with a wallet.
from web3modal-react-native.
Related Issues (20)
- [feature] Upgrade @web3modal/core-react-native to valtio 1.11.2 HOT 3
- [bug] Inability to execute write calls to contracts on React Native HOT 7
- [bug]: Can't find variable React HOT 5
- [feature] wagmi, viem v2 support HOT 9
- [bug]: this.events.off is not a function HOT 11
- [bug]: After approve/reject request in wallet don't redirect back on dapp on iOs 17+ HOT 1
- [bug]: New architecture support HOT 5
- [feature] Implement Analytics core
- [chore] Release alpha version of Analytics
- [feature] Send basic events to API
- Send Basic Events to API HOT 1
- Implement Analytics Core HOT 1
- Alpha Testing Bug fixes
- BETA | Update documentation
- [bug] IOS Crashes When Using this package with Webview HOT 7
- [bug]: Transaction process fails while staying in the wallet app HOT 5
- [bug]: Metamask chainId error HOT 1
- [bug]: Can't connect to wallet like SafePal, Trust Wallet... HOT 6
- [feature] Getting connected wallet metadata HOT 2
- [feature] Support `eth_signTypedData_v4` RPC method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web3modal-react-native.