receive parameters from firebase dynamic links using react-native-firebase code example

Example: receive parameters from firebase dynamic links using react-native-firebase

Please read carefully beacuse i waste my 3 to 4 to understand the the think

:(
  
)============Now follow this ==============

in react native firebase dynamic  linking

Follow the following link to setup the dynamic linking with react native 

https://rnfirebase.io/dynamic-links/usage

Steps are following


1 Set the short URL link

2 Set the dynamic link
A dynamic link is a direct link in your app that works regardless of whether the app is installed or not.
On a desktop it will open the URL of the direct link. 


and the main point is:

Suppose you created a domain for dynamic link from console:
https://myapp.page.link/abc

Now you can create a dynamic link which opens
the deep linked content on your app.
The dynamic link can take in only specific parameters as mentioned here.
However you can pass your parameters to your deep link,
  
 
  
so in my ( secound step)  i can pass n number of parms for my app

like this

 https://example.com/offer?offerid=123456 .

so when you open a link in app like -> https://myapp.page.link/abc

it will open the app can you will recevie the link in app like this 

{"minimumAppVersion": null, "url": " https://example.com/offer?offerid=123456"}

so now you have the parms do whatever you want to do