Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update expo-system-ui module on iOS #15146

Merged
merged 5 commits into from
Nov 15, 2021

Conversation

EvanBacon
Copy link
Contributor

Why

Move the startup requirements out of the template, support setting the window background color, and only set the top-level view controller. Split out of #15128

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Nov 10, 2021
EvanBacon and others added 2 commits November 10, 2021 13:25
Co-authored-by: Expo CI <34669131+expo-ci@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Nov 10, 2021
}
}
return color
Self.getBackgroundColor()
}

method("setBackgroundColorAsync") { (color: Int) in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since #14988 you can use color: UIColor and it'll be automatically converted 😊 (It's not supported for returned values yet)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well the Info.plist definition is in numeric format anyways.

public required init(appContext: AppContext) {
super.init(appContext: appContext)

// TODO: Maybe read from the app manifest instead of from Info.plist.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think in the future we can make the app manifest available from the app context. For now this solution seems fine.

rootView.backgroundColor = [UIColor whiteColor];
}

rootView.backgroundColor = [UIColor whiteColor];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am getting a little afraid if the view will blink when app running in dark mode. but maybe expo-splash-screen will handle this well. just leaving a note here. this is still looking fine to me.

@EvanBacon EvanBacon merged commit f4a7701 into master Nov 15, 2021
@EvanBacon EvanBacon deleted the @evanbacon/expo-system-ui/window-color branch November 15, 2021 23:53
DominickVale pushed a commit to DominickVale/expo that referenced this pull request Nov 24, 2021
* Update expo-system-ui module on iOS

* Update AppDelegate.m

* Apply suggestions from code review

Co-authored-by: Expo CI <34669131+expo-ci@users.noreply.github.com>

* Update ExpoSystemUIModule.swift

Co-authored-by: Expo CI <34669131+expo-ci@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants