Step 1: git clone this repo:
Step 2: cd to the cloned repo:
Step 3: Run the setup script: ./bin/setup
react-native run-ios
react-native run-android
If you are working on the AWS AppSync talk discussion feature of the app, you will need a .env
file with the proper API token, as well as the amplify-meta.json
file. Please ping @jamon
in the #chainreact channel of the Infinite Red community Slack and we'll hook you up!
fastlane match development
and fastlane match appstore
cd ios
bundle
bundle exec fastlane ios bump_build_number
bundle exec fastlane ios beta
cd android
bundle
bundle exec fastlane android beta
This project adheres to TSLint and Prettier. We suggest you enable linting to keep your project compliant during development. You can lint the project by running yarn lint
.
To Lint on Commit
This is implemented using husky. There is no additional setup needed.
Bypass Lint
If you have to bypass lint for a special commit that you will come back and clean (pushing something to a branch etc.) then you can bypass git hooks with adding --no-verify
to your commit command.
Understanding Linting Errors
The linting rules are from tslint-config-prettier. Regular TS errors can be found with descriptions here.
Note that Detox is only configured for macOS.
To get your Detox tests up and running, you'll need to install some global dependencies:
Install the latest version of Homebrew
Make sure you have Node installed (at least 8.6.0).
Install applesimutils
, which will allow Detox to communicate with the iOS simulator:
brew tap wix/brew && brew install applesimutils
yarn global add detox-cli
We've gotten you started with ./e2e/firstTest.spec.js
, which tests that the two main example screens render properly.
Note that in order to pick up elements by ID, we've added the testID
prop to the component.
yarn start
In a separate terminal window from the packager:
yarn build:e2e
yarn test:e2e
For more information, make sure to check out the official Detox Docs
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。