How to get multiple scenarios as array in app.json of Expo app?
P粉465287592
P粉465287592 2024-03-29 09:54:56
0
1
344

Do you know how to make an expo application with multiple schemes (e.g. array of strings)? Currently, they only support schemes in string form https://github.com/expo/expo/blob/de31ca319b23d07fb6a62cbe08e57ddc45ce6c78/packages/@expo/config-types/src/ExpoConfig.ts#L159

We need our application to support multiple scenarios such as

scheme1://scheme2://scheme3://

We did try to set this up in app.json,

scheme: ["scheme1", "scheme2", "scheme3"]

However, we have an easy update setup. So whenever we run eas update we get scheme should be a string error

Error screenshot

We also tried setting intent filters and CFBundleURLTypes for the scheme. The problem is using only the first option. Other scenarios specified have no effect.

P粉465287592
P粉465287592

reply all(1)
P粉833546953

I was able to speak with a developer on the Expo team. This is PR https://github.com/expo/expo/pull/22324

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template