Check out example codes for "real time currency conversion google sheets". It will help you in understanding the concepts better.

Code Example 1

=A2*GOOGLEFINANCE("CURRENCY:USDBRL")

Learn ReactJs, React Native from akashmittal.com