Get up and running fast with our example H5mag reader app.
It allows your customers to read your magazines, brochures or annual reports all within the app, online and offline.
The app is fully customizable to your business needs and supports both iOS and Android. The app has been tested on the following OS versions:
OS | Versions |
---|---|
iOS | 12.4, 15.0, 15.4 |
Android | 7.0 - 12.0 |
Installation instructions to get up and running for Android
- Download and setup Android Studio
- Create an Android device with at least SDK version 24 and at max 31
Installation instructions to get up and running for iOS
- Download and setup XCode 13 from the App Store
- Create an Apple device with at least iOS 12.4 and at max 15.4
- Clone this repository.
- Install packages using:
npm install
- Install cocoapods using:
sudo gem install cocoapods
|| If you are on Apple Silicon use:brew install cocoapods
- Install pod packages using:
cd ./ios && pod install
- cd back to the project root folder using:
cd ..
- In the project root folder, create a new js file called:
localConfig.js
- You need to add your public API key in the localConfig.js file like this:
export const API_KEY = 'h5_public_abcdef';
- cd back to the project root folder.
- Start the iOS emulator with Metro Bundler by using:
npx react-native run-ios
- Start the Android emulator with Metro Bundler by using:
npx react-native run-android
.
├── ...
├── android # Android (build) files
├── assets # Asset files (images)
├── ios # iOS (build) files
├── src # Source files
│ ├── components # Reusable components for screens
│ ├── css # CSS styles and variables
│ ├── screens # Views
│ └── util # Utility functions (Contains the SQLite Queries)
├── App.js # Navigation (stack and tab)
├── config.js # App settings (database and styling)
├── Database.js # SQLite implementation
├── index.js # AppRegistry
└── ...
If you would like to see the full API and/or create your own app without the demo application, go here
On Windows you may encounter this error while building the app. In order to fix this do the following:
- Open
android/gradle.properties
- Add this line:
org.gradle.java.home=C\:\\Program Files\\Java\\jdk1.8.0_181
(change it to your version)
MIT