https://github.com/sumit1993/hypersonix-stocks-rn-app
https://github.com/sumit1993/hypersonix-stocks-rn-app
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sumit1993/hypersonix-stocks-rn-app
- Owner: Sumit1993
- Created: 2020-11-15T11:31:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-29T17:54:32.000Z (over 4 years ago)
- Last Synced: 2025-01-29T22:46:45.665Z (3 months ago)
- Language: TypeScript
- Size: 4.97 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Hypersonix Stocks RN App
===This is an sample app to show stocks data.
## Setup
This project was bootstrapped with react-native init with Typescripr template.
## Table of Contents
* [Available Scripts](#available-scripts)
* [npm start](#npm-start)
* [npm test](#npm-test)
* [npm run ios](#npm-run-ios)
* [npm run android](#npm-run-android)
* [Environment Variables](#environment-variables)## Available Scripts
If Yarn was installed when the project was initialized, then dependencies will have been installed via Yarn, and you should probably use it to run these commands as well. Unlike dependency installation, command running syntax is identical for Yarn and NPM at the time of this writing.
### `npm start`
Runs your app in development mode.
Open it in the [Expo app](https://expo.io) on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.
Sometimes you may need to reset or clear the React Native packager's cache. To do so, you can pass the `--reset-cache` flag to the start script:
```
npm start -- --reset-cache
# or
yarn start -- --reset-cache
```#### `npm run ios`
Like `npm start`, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed.
#### `npm run android`
Like `npm start`, but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see [React Native docs](https://facebook.github.io/react-native/docs/getting-started.html) for detailed setup). We also recommend installing Genymotion as your Android emulator. Once you've finished setting up the native build environment, there are two options for making the right copy of `adb` available to Create React Native App:
##### Using Android Studio's `adb`
1. Make sure that you can run adb from your terminal.
2. Open Genymotion and navigate to `Settings -> ADB`. Select “Use custom Android SDK tools” and update with your [Android SDK directory](https://stackoverflow.com/questions/25176594/android-sdk-location).##### Using Genymotion's `adb`
1. Find Genymotion’s copy of adb. On macOS for example, this is normally `/Applications/Genymotion.app/Contents/MacOS/tools/`.
2. Add the Genymotion tools directory to your path (instructions for [Mac](http://osxdaily.com/2014/08/14/add-new-path-to-path-command-line/), [Linux](http://www.computerhope.com/issues/ch001647.htm), and [Windows](https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/)).
3. Make sure that you can run adb from your terminal.## Environment Variables
You can configure the environment variables in the .env file.
1. Rename the .env.example to .env file.
2. Place your AlphaVantage API key against ALPHA_VANTAGE_API_KEY.## Screenshots
The screenshots folder contains all the shots of running app