Skip to content

Unable to inject isHeadless prop via AppDelegate.m in expo-bare #4205

Answered by mikehardy
RealDyllon asked this question in Q&A
Discussion options

You must be logged in to vote

They split things, yes, so it is not all in one method. I believe you will need to store state in 'self' in one method in order to refer to it in another.

Add another line around here: https://github.com/expo/expo/blob/2b480843941b488ea7c256d97446f933cc21417b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m#L36 that references the appProperties NSDictionary pointer, in the same style.

Here is the start of the method you need to modify:

https://github.com/expo/expo/blob/master/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m#L41

You must do a FIRApp configure, yes? You should do that first.

Then somewhere after that but before RCTRootView alloc, add this t…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@RealDyllon
Comment options

@mikehardy
Comment options

@vietnogi
Comment options

@MaxKicw
Comment options

Answer selected by RealDyllon
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mattddean
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Workflow: Needs Review Pending feedback or review from a maintainer.
7 participants