Git Product home page Git Product logo

una-mobile-app's Introduction

UNA Mobile Apps

This is source code of UNA mobile apps for iOS and Android based on ReactNative.
Mobile apps need to have Nexus UNA app installed.

Run

You need to have npm, react-native along with Android SDK and/or XCode along withg CocoaPods installed to build apps.

After downloading source code, unpacking it, then run:

npm install 

Then you can already try to run Andoid app with the following commands (Android emulator must be already running):

export ANDROID_HOME=/path/to/android/sdk
react-native run-android

or iOS app (on Mac OSX only):

cd ios; pod install; cd ..
react-native run-ios

Changing display name and bundle identifier

Lest assume that you want to rename app to Kookaburra and site name is kookaburra.io.
Then you need to change the following strings:

UNA.IO => Kookaburra
com.una.android => com.kookaburra.android
com.una.ios => com.kookaburra.ios
una.io => kookaburra.io
una => kookaburra

In the following files and some files need to be renamed:

App.js
app.json
package.json

ios/Podfile
ios/una/AppDelegate.m

android/app/src/main/res/values/strings.xml
android/app/src/main/java/com/una/android/MainActivity.java => android/app/src/main/java/com/kookaburra/android/MainActivity.java
android/app/src/main/java/com/una/android/MainApplication.java => android/app/src/main/java/com/kookaburra/android/MainApplication.java
android/app/src/main/AndroidManifest.xml
android/app/BUCK
android/app/build.gradle

In XCode change the following (make sure to open una.xcworkspace):

Then rename the following file:

ios/kookaburra.xcodeproj/xcshareddata/xcschemes/una.xcscheme => ios/kookaburra.xcodeproj/xcshareddata/xcschemes/kookaburra.xcscheme

Change images to your own

Change all images to your own in /img/ folder, leaving the same images dimensions.

To change launcher and icons for iOS and Android apps it's recommended to use special script, it can be installed using the following command:

npm i -D @bam.tech/react-native-make

Then you can generate app icons for Android using the following command:

react-native set-icon --platform android --path ./img/icon-android.png

To generate splash for Android, some trick is needed (make sure that you replace Kookaburra with your own app name):
Change "name": "kookaburra" in package.json file to "name": "kookaburra/android".
Then run the following command:

react-native set-splash --platform android --path ./img/background.png --resize contain

Then change "name": "kookaburra/android" back to "name": "kookaburra" in package.json file.

Changing splash and app icon for iOS app requires similar trick:
Change "name": "kookaburra" in package.json file to "name": "una".
Then run the following commands:

react-native set-icon --platform ios --path ./img/icon.png
react-native set-splash --platform ios --path ./img/background.png --resize contain

Then change "name": "una" back to "name": "kookaburra" in package.json file.

3rd-party guides

una-mobile-app's People

Contributors

alextr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.