I'm working on an app that I need to change all the fonts of all the text of the app to a specific google font. Creating a custom Text component is not viable, I have it working on iOs and I have this script for web:
document.querySelectorAll('*').forEach(e => e.style.fontFamily = 'Nunito_400Regular');
This works if I run it in the console of the web app of my app thats being hosted with expo. However, if I place this in the useEffect of my topmost component, it doesn't seem to do anything. Does anyone have any way to do this without a third party module?