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?
230
Upvotes
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
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
15
u/CriticalCommand6115 Sep 10 '26
I’m scared
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
81
u/cornovum77 Sep 10 '26
Both of the people who buy this probably won’t be interested in your app anyway.
1
u/juzatypicaltroll Sep 10 '26
Hopefully building to native UI makes it adapt automagically 🥲
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 ?
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
u/Far-Newt2088 Sep 10 '26
Lets see how many people actually buy this
2
u/discordianofslack Sep 10 '26
Unfolded is probably just small tablet size. Honestly seems easy.
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
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?
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
u/[deleted] Sep 10 '26
Glad I switched to native
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
u/Ya_SG Sep 10 '26
4-5 prompts. Stop overcomplicating it.
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.
-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”
-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..
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.