how to code- send connection/friend request in react native app - react-native

Functionality: Send a connection/friend request to another user of the same app built on react native
Can anyone please suggest how do I code this functionality

You are trying to make a social app. Rather than sending in-app notifications and friend requests , you should structure your app properly about how the requests flow will be processed via backend. That's how facebook , instagram does , they have their servers for each functionality and upon click of any request buttons in the app ,those api's are called and respective friend requests are sent to the user. So structure your code-architecture first.
Do find the link below , it may help you
React native social app

Related

How to share user session in React Native App and WebView component

I have an application that shares backend with a web. This application has basic email/password login that returns Access Token which is being sent as a header for any other requests. The application also has a screen that is a WebView which displays the web version of this app.
My problem is that I don't know how to share user session between RN app and the WebView. When the user logs in the application it should also log him in the WebView page and if the user logs out it should log him out the WebView aswell.
Is there any way, to inform the WebView that user has logged in and that he should be logged in in the WebView as well?
I tried sending the Authorization header in the WebView source but it doesn't work. https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#working-with-custom-headers-sessions-and-cookies
Any auth is based on a secret. First, you need to decide what is your secret, it can be a session identifier or jwt token. Then you can communicate between React Native -> Web and back Web -> React Native
follow this guide communicating-between-js-and-native and share your knowledge about this secret and use it for your requests.
Related to custom headers this will set the header on the first load, but not on subsequent page navigations.

SMS Retrieve API react native

SMS retrieve API
I am working with a react native android application in this application I am reading a OTP that is sent from the SMS gateway I am using SMS Read permission the application is working fine but when I am trying to upload it in google play it is rejecting it because of SMS Read permission. I have read about the substitute and that is SMS retrieve API can anyone help me how to implement it in react native.

How to add chat feature in a react native application that updates chat instantly if the message arrives from opposite side?

I have implemented a chat feature in my application, but the issue I am facing is the screen does not refresh automatically if the user gets a message.
I looked for several options on the internet, but all I could find is paid services or using firebase.
Is there any free option to implement it without using firebase?
I want to refresh my chat screen instantly the message is received from the other side.

Wait for a server message in background in React Native

I'm developing a Messenger/Call app in React Native. Users can call each other. When all users are online there is no problem but when users go offline (close their app) they won't recognize calls. I need to run a service which listens to a specific types of message pushed by server.
I want to publish call signals by google GSM. (I can't use Firebase for some reasons)
Is there any library which I can use it or I have to define my own native module and Link it to React Native?

how to generate oauth_timestamp,oauth_nonce ,oauth_signature for react native

I am working on react native app. I want to connect my app to woocommerce api, for that I need to pass consumer key,time stamp, auth signature while making network requests. So My url should be as shown below:
http://quflip.com/wp-json/wc/v1/products?oauth_consumer_key=ck_75a6b3f5cf97e03a2bd42c8e4dffaefe07538bfb&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1480656796&oauth_nonce=2qL1ca&oauth_version=1.0&oauth_signature=6AJyrlsjcm2BxlMS1HSo3b0TTek=
So , how can acheive the url request as shown above
?