react global variable - use case scenario - global user name



In react native, using global variables is simply declaring your variable as follows :-

global.myVariableName = 'something'

That's it! :)

Comments

Popular posts from this blog

Solving Sonarqube :- Project was never analyzed. A regular analysis is required before a branch analysis

spark - pyspark reading from excel files