├── .gitignore ├── App.tsx ├── README.md ├── app.json ├── assets ├── adaptive-icon.png ├── favicon.png ├── icon.png └── splash.png ├── babel.config.js ├── eas.json ├── package.json ├── src ├── components │ ├── Food.tsx │ ├── Game.tsx │ ├── Header.tsx │ ├── Score.tsx │ └── Snake.tsx ├── styles │ └── colors.ts ├── types │ └── types.ts └── utils │ ├── checkEatsFood.ts │ ├── checkGameOver.ts │ └── randomFoodPosition.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/.gitignore -------------------------------------------------------------------------------- /App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/App.tsx -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/README.md -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/app.json -------------------------------------------------------------------------------- /assets/adaptive-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/assets/adaptive-icon.png -------------------------------------------------------------------------------- /assets/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/assets/favicon.png -------------------------------------------------------------------------------- /assets/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/assets/icon.png -------------------------------------------------------------------------------- /assets/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/assets/splash.png -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/babel.config.js -------------------------------------------------------------------------------- /eas.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/eas.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/package.json -------------------------------------------------------------------------------- /src/components/Food.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/src/components/Food.tsx -------------------------------------------------------------------------------- /src/components/Game.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/src/components/Game.tsx -------------------------------------------------------------------------------- /src/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/src/components/Header.tsx -------------------------------------------------------------------------------- /src/components/Score.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/src/components/Score.tsx -------------------------------------------------------------------------------- /src/components/Snake.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/src/components/Snake.tsx -------------------------------------------------------------------------------- /src/styles/colors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/src/styles/colors.ts -------------------------------------------------------------------------------- /src/types/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/src/types/types.ts -------------------------------------------------------------------------------- /src/utils/checkEatsFood.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/src/utils/checkEatsFood.ts -------------------------------------------------------------------------------- /src/utils/checkGameOver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/src/utils/checkGameOver.ts -------------------------------------------------------------------------------- /src/utils/randomFoodPosition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/src/utils/randomFoodPosition.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betomoedano/Snake-Game-With-React-Native/HEAD/yarn.lock --------------------------------------------------------------------------------