Skip to content

vitivan/FootballFan

Repository files navigation

Football Fan Application

Minimal template of a React Native project with Typescript.

This project has been updated but the Medium guide has not. Please, use this repository as reference.

Recommended usage with VSCode

Getting Started

Clone this repository:

git clone https://github.com/vitivan/FootballFan.git
cd FootballFan

Install dependencies:

yarn

Start React Native server:

yarn start

Build the source-code with Typescript:

# Build once
yarn run build

# Build and watch for changes
yarn run build -- --watch

iOS

yarn run ios

Android

yarn run android

Testing

This project uses Typescript + Jest. Run the test suite with:

yarn test

How to run application in dev mode

quick run all things together:

One terminal for build and watch for changes

npm run build -- --watch

Other terminal to run the development server

npm start

Other terminal to run android/ios

npm run android

for app update on device emulator tap twice on R button

run Android device emulator

emulator -avd Nexus_5X_API_25 -netdelay none -netspeed full

check devices list

emulator -list-avds

TEMPORARY FIXES:

  1. in types react-redux: export class Provider extends React.Component<ProviderProps, {}> { }