У меня есть этот собственный базовый шаблон, я запускаю его на Android и IOS, но не могу запустить его в Интернете
Как я могу это сделать?
когда я делаю npm start
, это дает мне порт 8081 и такой результат:
> NativebaseKitchenSink@2.5.0 start /home/dina/Downloads/react native template/NativeBase-KitchenSink-master
> node node_modules/react-native/local-cli/cli.js start
Scanning folders for symlinks in /home/dina/Downloads/react native template/NativeBase-KitchenSink-master/node_modules (10ms)
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
│ Running Metro Bundler on port 8081. │
│ │
│ Keep Metro running while developing on any JS projects. Feel free to │
│ close this tab and run your own Metro instance if you prefer. │
│ │
│ https://github.com/facebook/react-native │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
/home/dina/Downloads/react native template/NativeBase-KitchenSink-master
Metro Bundler ready.
Loading dependency graph...::1 - - [06/Jun/2018:07:12:00 +0000] "GET /favicon.ico HTTP/1.1" 404 150 "http://localhost:8081/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.139 Chrome/66.0.3359.139 Safari/537.36"
jest-haste-map: @providesModule naming collision:
Duplicate module name: my-app
Paths: /home/dina/Downloads/react native template/NativeBase-KitchenSink-master/my-app/my-app/package.json collides with /home/dina/Downloads/react native template/NativeBase-KitchenSink-master/my-app/package.json
This warning is caused by a @providesModule declaration with the same name across two different files.
Loading dependency graph, done.