2

Exactly as in Title guys.

I've already passed variables as arguments to native modules through RCT_EXPORT_MODULE, and I'm aware of RCT_CUSTOM_VIEW_PROPERTY, although this is for 'callable' components, and I'm not sure it can be used to pass a JS variable to AppDelegate.m, neither how to do it.

Anyone was able to do this? Cheers!

1 Answer 1

2

I found this package react-native-config and it does the job greatly!

Here's their github: https://github.com/luggit/react-native-config

If someone come's up with a better answer, I'll mark it as the right answer ;)

Sign up to request clarification or add additional context in comments.

1 Comment

brilliant! That's what I was looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.