Home  >  Q&A  >  body text

How to get multiple scenarios as array in app.json of Expo app?

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粉465287592P粉465287592226 days ago337

reply all(1)I'll reply

  • P粉833546953

    P粉8335469532024-03-30 00:07:09

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

    reply
    0
  • Cancelreply