Rocket.Chat mobile clients
Go to file
Diego Mello ed8ce28708 Fix for "java.lang.IllegalArgumentException: unexpected url" (#313)
<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->
@RocketChat/ReactNative

<!-- INSTRUCTION: Inform the issue number that this PR closes, or remove the line below -->
User was able to add an invalid instance of Rocket.Chat by pressing submit button instead of "Connect" button.

<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->
2018-05-30 13:51:30 -03:00
.circleci New markdown (#306) 2018-05-29 14:09:20 -03:00
.expo Add room search (#16) 2017-08-10 13:16:32 -03:00
.github Added Templates for Issue and Pull Requests (#161) 2017-12-26 12:46:34 -02:00
__mocks__ Fix travis 2017-08-23 11:38:05 -03:00
__tests__ New markdown (#306) 2018-05-29 14:09:20 -03:00
android Deep linking fix and more (#294) 2018-05-18 14:55:08 -03:00
app Fix for "java.lang.IllegalArgumentException: unexpected url" (#313) 2018-05-30 13:51:30 -03:00
e2e New markdown (#306) 2018-05-29 14:09:20 -03:00
icons/20x20 [FIX] messagebox growing width and icons (#130) 2017-12-08 17:36:03 -02:00
ios Deep linking (#291) 2018-05-07 17:43:26 -03:00
resources/fonts [FIX] messagebox growing width and icons (#130) 2017-12-08 17:36:03 -02:00
scripts Crashlytics (#258) 2018-04-03 13:24:58 -03:00
storybook [FIX] messagebox growing width and icons (#130) 2017-12-08 17:36:03 -02:00
.babelrc fix babelrc indentation 2017-11-20 15:29:56 -02:00
.bettercodehub.yml Add bettercode (#30) 2017-08-18 14:02:12 -03:00
.buckconfig Initial commit 2017-08-03 15:23:43 -03:00
.eslintignore Detox tests E2E (#283) 2018-05-23 10:39:18 -03:00
.eslintrc.js Crashlytics (#258) 2018-04-03 13:24:58 -03:00
.flowconfig Initial commit 2017-08-03 15:23:43 -03:00
.gitattributes Initial commit 2017-08-03 15:23:43 -03:00
.gitignore Crashlytics (#258) 2018-04-03 13:24:58 -03:00
.snyk fix: package.json & .snyk to reduce vulnerabilities (#47) 2017-11-22 12:04:44 -02:00
.travis.yml Add master branch to travis.yml 2017-08-23 11:44:43 -03:00
.watchmanconfig Initial commit 2017-08-03 15:23:43 -03:00
LICENSE Create LICENSE 2018-04-21 15:24:08 -03:00
Logo.png Ci (#25) 2017-08-18 11:50:20 -03:00
README.md Detox tests E2E (#283) 2018-05-23 10:39:18 -03:00
app.json Initial commit 2017-08-03 15:23:43 -03:00
index.android.js Reactotron working (#249) 2018-03-23 16:55:40 +00:00
index.ios.js Reactotron working (#249) 2018-03-23 16:55:40 +00:00
jsconfig.json Init Redux usage 2017-08-12 22:35:09 -03:00
key.keystore.enc Ci (#25) 2017-08-18 11:50:20 -03:00
package-lock.json New markdown (#306) 2018-05-29 14:09:20 -03:00
package.json New markdown (#306) 2018-05-29 14:09:20 -03:00

README.md

Rocket.Chat React Native Mobile

Greenkeeper badge

Build Status Project Dependencies Codacy Badge codecov CodeFactor Known Vulnerabilities BCH compliance

Supported Server Versions: 0.58.0+ (We are working to support earlier versions)

Installing dependencies

Follow the React Native Getting Started Guide for detailed instructions on setting up your local machine for development.

How to run

  • Clone repository and install dependencies:

    $ git clone git@github.com:RocketChat/Rocket.Chat.ReactNative.git
    $ cd Rocket.Chat.ReactNative
    $ npm install -g react-native-cli
    $ npm install
    
  • Configuration

    $ npm run fabric-ios --key="YOUR_API_KEY" --secret="YOUR_API_SECRET"
    $ npm run fabric-android --key="YOUR_API_KEY" --secret="YOUR_API_SECRET"
    
  • Run application

    $ npm run ios
    
    $ npm run android
    

Detox (end-to-end tests)

  • Build your app
$ detox build
  • Run tests
$ detox test

Storybook

  • General requirements

    • Install storybook
      $ npm i -g @storybook/cli
      
  • Running storybook

    • Run storybook application
      $ npm run storybook
      
    • Run application in other shell
      $ react-native run-ios
      
    • Running storybook on browser to help stories navigation
      open http://localhost:7007/