git ssb


0+

andrestaltz / poc-android



Commit 98f5323a1d5e08dd845ff4cc19245956640a370e

Update README.md

Andre Staltz committed on 3/17/2017, 5:42:38 PM
Parent: 6de010ba8ccf95f5aeec094ee810a8e4244f71cd

Files changed

README.mdchanged
README.mdView
@@ -1,103 +1,3 @@
1-This project was bootstrapped with [Create React Native App](https://github.com/react-community/create-react-native-app).
1+**Work in progress** Proof of Concept SSB app for mobile.
22
3-Below you'll find information about performing common tasks. The most recent version of this guide is available [here](https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md).
4-
5-## Table of Contents
6-
7-* [Updating to New Releases](#updating-to-new-releases)
8-* [Available Scripts](#available-scripts)
9- * [npm start](#npm-start)
10- * [npm test](#npm-test)
11- * [npm run ios](#npm-run-ios)
12- * [npm run android](#npm-run-android)
13- * [npm run eject](#npm-run-eject)
14-* [Writing and Running Tests](#writing-and-running-tests)
15-* [Customizing App Display Name and Icon](#customizing-app-display-name-and-icon)
16-* [Sharing and Deployment](#sharing-and-deployment)
17- * [Publishing to Expo's React Native Community](#publishing-to-expos-react-native-community)
18- * [Building an Expo "standalone" app](#building-an-expo-standalone-app)
19- * [Ejecting from Create React Native App](#ejecting-from-create-react-native-app)
20- * [Build Dependencies (Xcode & Android Studio)](#build-dependencies-xcode-android-studio)
21- * [Should I Use ExpoKit?](#should-i-use-expokit)
22-* [Tips and Tricks](#tips-and-tricks)
23-
24-## Updating to New Releases
25-
26-You should only need to update the global installation of `create-react-native-app` very rarely, ideally never.
27-
28-Updating the `react-native-scripts` dependency of your app should be as simple as bumping the version number in `package.json` and reinstalling your project's dependencies.
29-
30-Upgrading to a new version of React Native requires updating the `react-native`, `react`, and `expo` package versions, and setting the correct `sdkVersion` in `app.json`. See the [versioning guide](https://github.com/react-community/create-react-native-app/blob/master/VERSIONS.md) for up-to-date information about package version compatibility.
31-
32-## Available Scripts
33-
34-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.
35-
36-### `npm start`
37-
38-Runs your app in development mode.
39-
40-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.
41-
42-#### `npm test`
43-
44-Runs the [jest](https://github.com/facebook/jest) test runner on your tests.
45-
46-#### `npm run ios`
47-
48-Like `npm start`, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed.
49-
50-#### `npm run android`
51-
52-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).
53-
54-#### `npm run eject`
55-
56-This will start the process of "ejecting" from Create React Native App's build scripts. You'll be asked a couple of questions about how you'd like to build your project.
57-
58-**Warning:** Running eject is a permanent action (aside from whatever version control system you use). An ejected app will require you to have an [Xcode and/or Android Studio environment](https://facebook.github.io/react-native/docs/getting-started.html) set up.
59-
60-## Customizing App Display Name and Icon
61-
62-You can edit `app.json` to include [configuration keys](https://docs.expo.io/versions/latest/guides/configuration.html) under the `expo` key.
63-
64-To change your app's display name, set the `expo.name` key in `app.json` to an appropriate string.
65-
66-To set an app icon, set the `expo.icon` key in `app.json` to be either a local path or a URL. It's recommended that you use a 512x512 png file with transparency.
67-
68-## Writing and Running Tests
69-
70-This project is set up to use [jest](https://facebook.github.io/jest/) for tests. You can configure whatever testing strategy you like, but jest works out of the box. Create test files in directories called `__tests__` to have the files loaded by jest. See the [the template project](https://github.com/react-community/create-react-native-app/tree/master/react-native-scripts/template/__tests__) for an example test. The [jest documentation](https://facebook.github.io/jest/docs/getting-started.html) is also a wonderful resource, as is the [React Native testing tutorial](https://facebook.github.io/jest/docs/tutorial-react-native.html).
71-
72-## Sharing and Deployment
73-
74-Create React Native App does a lot of work to make app setup and development simple and straightforward, but it's very difficult to do the same for deploying to Apple's App Store or Google's Play Store without relying on a hosted service.
75-
76-### Publishing to Expo's React Native Community
77-
78-Expo provides free hosting for the JS-only apps created by CRNA, allowing you to share your app through the Expo client app. This requires registration for an Expo account.
79-
80-Install the `exp` command-line tool, and run the publish command:
81-
82-```
83-$ npm i -g exp
84-$ exp publish
85-```
86-
87-### Building an Expo "standalone" app
88-
89-You can also use a service like [Expo's standalone builds](https://docs.expo.io/versions/latest/guides/building-standalone-apps.html) if you want to get an IPA/APK for distribution without having to build the native code yourself.
90-
91-### Ejecting from Create React Native App
92-
93-If you want to build and deploy your app yourself, you'll need to eject from CRNA and use Xcode and Android Studio.
94-
95-This is usually as simple as running `npm run eject` in your project, which will walk you through the process. Make sure to install `react-native-cli` and follow the [native code getting started guide for React Native](https://facebook.github.io/react-native/docs/getting-started.html).
96-
97-#### Should I Use ExpoKit?
98-
99-If you have made use of Expo APIs while working on your project, then those API calls will stop working if you eject to a regular React Native project. If you want to continue using those APIs, you can eject to "React Native + ExpoKit" which will still allow you to build your own native code and continue using the Expo APIs. See the [ejecting guide](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md) for more details about this option.
100-
101-## Tips and Tricks
102-
103-* If you have a local network the prevents your phone from accessing the address that is printed when running the packager, you can often work around this issue by "tethering" your computer to your phone's internet connection. Some phones call this feature "mobile hotspot." While it's very convenient, if you have a data plan where you pay for data transfer you should be careful when using this feature, especially when installing dependencies from NPM.
3+Using React Native. Currently focuses on Android.

Built with git-ssb-web