robinheinze / ignite-trivia

A Trivia App based on https://opentdb.com/, built with Ignite Bowser with MobX State Tree and TypeScript
49 stars 21 forks source link

react-navigation v5? #2

Closed kevinsproles closed 3 years ago

kevinsproles commented 4 years ago

Can't get the app to launch. Using:

npm install npx react-native run-ios

fails with:

Loading dependency graph, done.
error: bundling failed: Error: Unable to resolve module `react-native-screens` 
from `.../git/ignite-trivia/node_modules/react-navigation-stack/lib/module/views/StackView/StackViewCard.js`: 
Module `react-native-screens` does not exist in the Haste module map

Looks like this repo is using react-navigation 3.0.0, however latest is 5.x: https://reactnavigation.org/

Maybe 3.x doesn't build anymore? Have you thought about updating this example repo?

syahnur197 commented 3 years ago

can look into this repo: https://github.com/syahnur197/react-native-boilerplate

tommy921092 commented 3 years ago

@syahnur197 thanks for your repo sharing, I cloned your code but when I pull the screen no questions are being fetched on my phone(android). But I can fetch the quesiton on ios/android studio. Do you know what is missing?

syahnur197 commented 3 years ago

probably some configuration in your android, though I cant pinpoint exactly where

robinheinze commented 3 years ago

This repo is fully updated now for Ignite 6.0.0, including React Navigation 5.