DEV Community

Discussion on: Creating a Multi-Language App in React Native

Collapse
 
luizfbrisighello profile image
Luiz Felipe Shimizu Brisighello • Edited

Hi Vikrant Negi! How do I go about doing this with multiple screens? Can I have all of these code in a translate.js file and pass the translate variable as a prop?

Collapse
 
vikrantnegi profile image
Vikrant Negi

You can put all your translations in the translate.js file and use the keys in your multiple files

Collapse
 
luizfbrisighello profile image
Luiz Felipe Shimizu Brisighello

I figured it out! The question now is how do I use useMemo hook instead of lodash.memoize?