title: How to build a react native .ipa and .apk application in bluemix
body: <p>I am new to Bluemix.</p>
  
  <p>I have a pre-existing React Native project in a git repo also containing transpiled code for ios and android.  I would like to pull that git repo into Bluemix and when changes are detected, simply build both the android .apk and ios .ipa file.</p>
  
  <p>Does Bluemix provide a native way to do this?  I've seen some documentation on MobileFoundation and MobileFirst Platform which seems promising and it also seems possible with a lot of surgery to do this in a ToolChain/Delivery Pipeline/Build Script(going down this route in the code below).</p>
  
  <p>Are we going in the right direction?  Appreciate any insight.  Especially step-by-step guidance.  I was unable to find any posts or articles in Bluemix that talk about this.</p>
  
  <pre><code>#!/bin/bash
  
  # binplace android sdk
  wget http://dl.google.com/android/android-sdk_r23-linux.tgz
  tar -xzf android-sdk_r23-linux.tgz -C /home/pipeline
  
  # set ANDROID_HOME
  # ANDROID_HOME doesn't get recognized downstream......
  echo 'export ANDROID_HOME=/home/pipeline/android-sdk-linux' &gt;&gt;~/.profile
  echo 'export PATH=$PATH:$ANDROID_HOME/tools' &gt;&gt;~/.profile
  echo 'export PATH=$PATH:$ANDROID_HOME/platform-tools' &gt;&gt;~/.profile
  
  # install android sdk
  # filtering to be added to reduce lengthy install time
  /home/pipeline/android-sdk-linux/tools/android update sdk --no-ui
  </code></pre>
  
  <p><strong>UPDATE</strong>
  We are still wading through a lot of misaligned Bluemix documentation referencing old or non-existent Bluemix UI, broken article links, etc.  Posting a bounty for anyone with exact steps how to get this done(preferably using the newer Bluemix UI, not hub.jazz.net).  The best article we've found so far which seems to go down somewhat a correct path is posted below.</p>
  
  <p><a href="https://mobilefirstplatform.ibmcloud.com/blog/2016/08/25/mobilefirst-devops-in-bluemix/" rel="nofollow noreferrer">https://mobilefirstplatform.ibmcloud.com/blog/2016/08/25/mobilefirst-devops-in-bluemix/</a></p>