The following instructions apply to the mobile apps for iOS and Android built in React Native. Download the iOS version here and the Android version here. Source code can be found at the GitHub Mattermost Mobile app repository.
If you run into any issues getting your environment set up, check the Troubleshooting section of the product docs for common solutions.
The following instructions apply to both iOS and Android mobile apps. On macOS, we recommend using Homebrew as a package manager.
We recommend using NodeJS v18 and npm v8. Many of our team use nvm to manage npm and NodeJS versions.
To install NVM using Homebrew, open a terminal and execute:
brew install nvm
To install NodeJS v18 LTS using NVM, open a new terminal and execute:
nvm install --lts=hydrogen
There are three available options for installing NodeJS on Linux:
Watchman is a file watching program. When a file changes, Watchman triggers an action, such as re-running a build command if a source file has changed.
The minimum required version of Watchman is 4.9.0.
To install Watchman using Homebrew, open a terminal and execute:
brew install watchman
Download the latest package from here.
npm -g install react-native-cli
To install Git using Homebrew, open a terminal and execute:
brew install git
Install Xcode to build and run the app on iOS. The minimum required version is 11.0.
A version of Ruby is automatically installed on macOS, but React Native development requires Ruby 2.7.6. You can check the current version of Ruby by running the following command.
If it isn’t, we recommend using Ruby Version Manager or your preferred package manager to install the required version. The steps below are for using RVM.
gpg command, you can install it using Homebrew by running.
brew install gnupg
\curl -sSL https://get.rvm.io | bash -s stable --ruby
rvm install 2.7.6
rvm use 2.7.6 any time you want to work on the mobile app.
rvm alias create default 2.7.6
Download and install the Android Studio app or the Android SDK command line tools
Make sure you have the following environment variables configured for your platform:
ANDROID_HOME to where Android SDK is located (likely
On Mac, this usually requires adding the following lines to your
Then reload your bash configuration:
On Linux the home folder is located under
/home/<username> which results in a slightly different path:
Then reload your configuration
In the SDK Manager using Android Studio or the Android SDK command line tool, ensure the following are installed:
SDK Tools (you may have to select Show Package Details to expand packages):
SDK Platforms (you may have to select Show Package Details to expand packages)
In order to develop and build the Mattermost mobile apps, you’ll need to get a copy of the source code. Forking the
mattermost-mobile repository will also make it easy to contribute your work back to the project in the future.
Fork the mattermost-mobile repository on GitHub.
Clone your fork locally:
a. Open a terminal
b. Change to a directory you want to hold your local copy
git clone https://github.com/<username>/mattermost-mobile.git if you want to use HTTPS, or
git clone firstname.lastname@example.org:<username>/mattermost-mobile.git if you want to use SSH
Change the directory to
Install the project dependencies with