2

At the moment npm start looks in App.js. How do I change this to a different file?

Lucien
  • 776
  • 3
  • 12
  • 40
  • ou mean you want to change the extension? – hong developer Jun 18 '19 at 01:35
  • 1
    Duplicate of [defining expo entryPoint in app.json does not work](https://stackoverflow.com/questions/54886508/defining-expo-entrypoint-in-app-json-does-not-work) – Lucien Jun 18 '19 at 07:28
  • @hongdevelop I meant to put App.js in a different folder- turns out you explicitly have to register the root element in this case – Lucien Jun 18 '19 at 07:30

1 Answers1

3

You can use entryPoint property in app.json.

Check this : https://docs.expo.io/versions/latest/workflow/configuration/

Cà phê đen
  • 1,883
  • 2
  • 21
  • 20
ThinkAloud
  • 41
  • 4
  • 1
    That actually isn't enough but I found that my question is a duplicate and that answer works- https://stackoverflow.com/questions/54886508/defining-expo-entrypoint-in-app-json-does-not-work – Lucien Jun 18 '19 at 07:28