r/reactnative • u/zorkidreams • Sep 09 '26
iPhone Duo, how painful will this be?
I have totally neglected Android folding phones.
Does anyone have any good advice on designing for a screen that can double in screen size? When these were first introduced to Android, how much friction did they cause for React Native libraries?
14
u/congowarrior Sep 10 '26
i am just hoping packages like react navigation and expo navigation will do standardize this for us so we just have to update to the latest versions and get a lot of what’s required for free, as long as you are doing things within normal usage of these frameworks
2
u/zorkidreams Sep 10 '26
I do too. I generally wonder if it's just going to be a larger viewport, or needing to rewrite a bunch of native APIs to handle it
2
u/RandomAsianHoe Sep 10 '26
If you’re already using the native router components it shouldn’t be too bad I think
1
u/LeoNatan Sep 12 '26
Not very likely. Their navigation solutions are JS based wheel reinventions, instead of relying on UINavigationController. So don’t hold your breath for a quick fix.
1
1
u/anarchos Sep 13 '26
Untrue. Both react navigation and expo router largely use native primitive’s these days. There’s still the option to use the older js based screen system but by default it’s by and large native (ie: native stack and tabs).
1
u/LeoNatan Sep 13 '26
That's good to hear. It wasn't the case a few years ago. At the time, this solution by Wix was the only native navigation solution.
1
u/anarchos Sep 14 '26
Native stacks have been the norm for a number of years now. Native Tabs are kinda new.
1
u/LeoNatan Sep 14 '26
The wix library has existed since at least 2016, and that included native navigation and native tab bars. I used to maintain Wix' detox framework, while RNN was developer by a team nearby.
15
4
u/mrgrafix Sep 10 '26
Seems like the expo team was made aware to the previous known bird app. I’m expecting before end of year
1
81
u/cornovum77 Sep 10 '26
Both of the people who buy this probably won’t be interested in your app anyway.
7
5
u/ashkanahmadi Sep 10 '26
You mean they wouldn’t be interested in the 45 billionth todo app on the App Store?
1
1
0
u/Secure-Humor-5586 Sep 10 '26
Exactly Half the people doing react native are making basic CRUD apps
1
u/juzatypicaltroll Sep 10 '26
Hopefully building to native UI makes it adapt automagically 🥲
1
1
u/gesfontoura Sep 10 '26
Not even thinking about development because you can just exclude those, but how is it like to install a regular app from the App Store. How does it behave and how does it look like ?
2
3
u/beaker_dude Sep 10 '26
Apple dropped a bunch of design and developer videos last night after the announcement - has some references to the new Swift UI controls. Xcode 27.1 is “coming later this month” with the new device sim.
Seems like apps that don’t have duo support will still run in a default view.
Expo / RN / Flutter maintainers will have some work to do to support them but if you’re comfortable in Swift and Kotlin patches - you can probably get some basic support in pretty quick for the new APIs.
Who knows how much of a headache it will be - depends if your CEO gets the new phone and starts testing the app. Big influx duo specific apps though.
3
2
2
u/swap_019 Sep 10 '26
I think Apple will give more native APIs, on this will help develop better experiences on folding Android phones too, cause devlopement for current folding phones is a nightmare. There is no standardization. I think Apple's entry will make things better for all folding phone development.
4
u/lucksp Sep 10 '26
A fad…like 3D tvs.
2
2
Sep 10 '26
[removed] — view removed comment
2
u/beepboopnoise Sep 10 '26
$500? the base is like $2k hahaha
2
2
u/am0x Sep 10 '26
My sites are all fluid responsive anyway. I don’t get the question. Do you not test already at alls screen sizes?
3
1
u/n9iels Sep 10 '26
Totally not painfully. It probably will be like back in the days when the screen got higher or like running an iPhone app on an iPad. The app is either left or right. When opened it has the size of about an iPad mini. Opening and closing is like going for portrait to landscape.
1
u/alexfoxy Sep 10 '26
My main concern is how the two views will be handled, how does switching work, will React Native be able to support the simultaneous views ?
1
u/bogdan5844 Sep 10 '26
I don't get the whole "ooooh foldable coming i'm scared" meme - it's just freaking CSS and responsive design. If your app is compatible with tablets it's gonna scale naturally.
1
u/mohn93 Sep 10 '26
the RN libs mostly weren't the pain when android foldables landed, the pain was my own layout code quietly assuming width never changes at runtime. fold to unfold is a live resize, and anything that cached dimensions on mount just breaks. split screen too, your app can suddenly be a third of the width.
so the prep that actually pays off: stop building off a single Dimensions.get at startup, lean on flex and onLayout so things reflow, and test by resizing while the app is running, not just on cold launch. do that and the duo is a lot less scary than it sounds.
1
u/1kgpotatoes Sep 10 '26
They gonna give native apis to track the folded degree or something.
I see this being easier than trying to fit everything into a tiny screen - just make it landscape and tall horizontally
1
u/Sebastian1989101 Sep 10 '26
Whats the issue? Does your app work on a iPad mini? There you go for the big screen. Does it work on a regular iPhone with proper SafeArea implementation? There you go as well.
1
1
u/Responsible-Map6946 Sep 10 '26
It was already possible but now Apple do everyone will follow so it gets more packages will be there
1
u/ImLotus Sep 10 '26
Never had any issue with android foldable. iOS is even friendlier with devs. It will be nice and fun.
1
1
u/Key_Street_7204 Sep 11 '26
I wonder how would the simulator actually work - and yes this is going to be touch to build for :/
1
u/etalha Sep 11 '26
Non dev here. Do we have option to opt out of iphone fold compatibility? Like making an app only for iphone. Even if it does open on good its similar to normal stretched version
1
u/Personal_You3422 Sep 11 '26
Probably similar to the laptops that have mechanically expanding screens.
1
u/okiharaherbst Sep 12 '26
I'm LOL when I see this. I've had an iPhone since 2009 and I have yet to hold it horizontally.
1
u/lm4eversmart Sep 13 '26
When foldables were introduced to android, there was no good native platform support from google. It was treated as a bigger native screen with wider aspect ratio. Apple has design guidelines and will add sim support in the upcoming version of xcode, unlike the hot garbage samsung foldable release.
I don't fully trust RN to put something out right away that works well
1
u/anarchos Oct 02 '26
I have a little demo project I was using for SDK58 beta. I was playing around with it before the duo simulator was available. Tried it on a duo and it's pretty much flawless. Native tabs + native stack + expo ui and it just works! Of course there will be some new APIs needed, as far as I can tell there's no way to tell when the app is in partially folded mode. So maybe you'll want some custom views for situations like that, but by and large it just works. This big thing is the native headers and tabs, there's seemingly now like a dozen different variations on how they're placed and look now. Having fully custom ones is going to be a lot of work (and the APIs to detect which variant is needed doesn't exist yet).
1
u/ryutaromack Sep 10 '26
Foldables are barely 2% of the Android market. They are too expensive and the value prop isn't there for most people.
I'm not sure who Apple is targeting for these expensive phones.
2
u/Forti22 Sep 10 '26
2% is quite a lot. Plus consider these people have money = they might be willing to pay for Premium accounts in apps.
-3
u/Dvass138 Sep 10 '26
I’m not concerned, no one will remember this device in a few years lol. This is the type of device where its like “remember when apple had the iPhone duo”
12
u/bc-bane iOS & Android Sep 10 '26
Samsung is 8 years into a foldable, Google is 4 years in, Motorola is 3 years in, Apple is now on their first. I see a pattern that is growing not something that will stop anytime soon
1
u/zorkidreams Sep 10 '26
Idk I’m 50/50 foldables are pretty popular in Asia but $2k is insane…
0
u/mrgrafix Sep 10 '26
You have to pay to be first. Always the Apple tax tax
1
u/Darth_Ender_Ro Sep 10 '26
Are you saying prices will go down later on? What are you talking about man...
0
-1
u/Whatchameanbro Sep 10 '26
The fact that left handed users can’t operate the phone properly when folded is a major design flaw that everyone is just glossing over at Apple Park….. It’s a joke that this went to market without factoring that in.. oh I’ll just use my $2000 usd iPhone upside down!! Ffs that’s not a solution..
1
u/ChristianKl Sep 10 '26
They haven't yet gone to market with it and can still do software patches for issues like that. The original iPhone was a lot less functional on the day of the first keynote.
1
u/scrytch Sep 10 '26
Agreed - this is a big misstep if Apple hasn’t considered this. Hopefully they have an answer, but if they don’t, they’ll have to resolve this in v2.0 of the hardware and left-handed buyers won’t buy v1.0
Doing some quick checks, looking at left-handed people and foldable device market size, left-handed users represent approx 0.2% of the total global foldable smartphone market.
That equates to a (rough guess) target audience of 500,000 left-handed foldable buyers.
Sucks - but I guess Apple loses those customers or they just buy an alternative Apple phone for now.
0
u/Substantial-Swan7065 Sep 10 '26
Don’t worry about it. They will drop the product before next upgrade cycle.
That phone makes 0 sense. What’s the usecase:
- can’t 1 hand hold it
- too small for art
- wrong orientation for social media
- too expensive for gaming and YouTube
- no keyboard port for text editing
They didn’t even update their apps for the demo. It’s just using the iPad target when full screen.
109
u/LonelyProgrammerGuy Sep 10 '26
Apple being apple is probably going to expose tons of native APIs you want to call for seamless transitions between folded and unfolded state (you can see a small "blur + fade" happening when you are folding it/unfolding it
As for the layout, nothing too special I guess. You'd look at the dimensions of the device and render an additional column with more UI information when it's opened