default run JS file

hi ,
This is my first topic ,i hope that you help me
i make new project in Snak …
what is the first File to run my project .
I try to run my project using index.js
but every time takes the content of app.js
so…what is the default JS file to run the project.

The package.json normally specifies the entry point as follows:

  "main": "node_modules/expo/AppEntry.js",
  "dependencies": {
    "expo": "^34.0.1",
  "devDependencies": {
    "babel-preset-expo": "^6.0.0",
    "react-native-bundle-visualizer": "^2.0.3"
  "private": true

And node_modules/expo/AppEntry.js contains this line:

import App from '../../App';

But in snacks you are not given the full package.json. Maybe you can specify a “main” entry in package.json manually. I haven’t tried it. But I recommend you just use App.js as the entry point.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.