Create http websocket server on React Native app - react-native

I would like exchange small data and text on React Native app in offline context. I know React is only for the View, but is it possible to create small http websocket serveur on React-Native app using socket.io ?

socket io is a nodejs module and can't use in RN. you should use react-native-tcp
visit TCP server mode with react native
and
https://github.com/PeelTechnologies/react-native-tcp

Yes, you can use socket io client with react native app by simply installing this plugin socket.io-client

Related

React Native how can ะจ create http websocket for handle post request

I have a react native project that was created on the expo and will work on android.
I want to create a HTTP server on any port on localhost and I will take the request body from there and use it anywhere on my project.
How can I do that?
Apk will work on a phone that will be connected to a different network. I can't connect to the internet

React native project to use heroku express url

I have heroku backend express server project.I have react native project. I am trying to use heroku express url in my fetch in react native.. but I am getting network request failed.
I have two questions.
1.Why is that url not working in react native fetch, but opening in heroku.
Like react, can we put static files in build and try to serve that build in express app.use(express.static("client/build"));
Thanks a lot in advance.

connect to Wireguard with react native

I want to build an application using react native the UI is not that hard for me I can handle it my main problem is I can not make the application interact with the VPN configs file that I have from Wireguard
can you guys please guide me to make my react native app interacts with the phone VPN API so I can connect the configs file to it
I also want to build VPN with React NATIVE, but i Can't find proper library.
I Found this but i think old VERSION
https://www.npmjs.com/package/react-native-vpn-testing-only

React Native Remote Notification without Expo

I am working on building a mobile application. I used react native on the front end. In my application, I wanna send a notification to users. I used native modules so that I had to eject expo. What is the best way to send remote notification without expo?
This library is the most used one for react native push notifications: React Native Push Notifications
This can help you with firebase push notifications: Firebase cloud messaging

bitcoin JSON-RPC Api requests in React native?

How do i make a request in react-native to build wallet for bitcoin,bitcoind server running,but can't make any bitcoin json-rpc request in react native.
Use this api to interface it with react. By changing some syntax
https://github.com/blockchain/service-my-wallet-v3