xmtp / example-chat-react-native Goto Github PK
View Code? Open in Web Editor NEWARCHIVED: See the README for alternative approaches to building an XMTP app with React Native.
License: MIT License
ARCHIVED: See the README for alternative approaches to building an XMTP app with React Native.
License: MIT License
Attempting to use xmtp-js in React Native, I successfully integrate the SDK, I can send messages, and also get the messages list works fine.
Listen for new messages in a conversation it's not working
for await (const message of await conversation.streamMessages()) {
if (message.senderAddress === xmtp.address) {
// This message was sent from me
continue
}
console.log(`New message from ${message.senderAddress}: ${message.content}`)
}
As I followed the documentation, the expected result whenever I send a message from user A to user B, the message should be displayed for user B, but it is not the case for me.
I'll be so thankful If give us any hints to make this work. :)
Hi!
I added XMTP.js to my React Native app. But I try to initialize the client I get an error that says Conversion from BigInt to number is not allowed
fyi, the app is using hermes and that I've already added the polyfills
WalletConnect v1 is sunsetting March 1, 2023 https://medium.com/walletconnect/walletconnect-v1-0-sunset-notice-and-migration-schedule-8af9d3720d2e.
Related:
Thanks for this lib and this sample app!
However, I'm having really bad performance with it, do you know if that's normal?
A classic conversations.list(
) usually takes 2-3 seconds when in the browser or NodeJS.
But in the react native environment it takes 42 seconds in the simulator and 58 seconds on my iPhone!
Using the wallet created in app (that's empty) it is almost immediate
Using my own wallet that has 7 conversations on the testnet it takes a very long time
Here is an example code diff to show you what I did in the app (pretty straightforward) : main...nmalzieu:xmtp-react-native:main
Do tell me if you want more information or if we should hop on a call to debug together
Options going forward
Dimensions to consider:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.