Giter Site home page Giter Site logo

react-native-app-launcher's Introduction

Currently under development

Installation

  • Run npm install --save git+https://github.com/MrToph/react-native-app-launcher.git

  • Add the following to android/settings.gradle:

    include ':react-native-app-launcher'
    project(':react-native-app-launcher').projectDir = new File(settingsDir, '../node_modules/react-native-app-launcher/android')
    
  • Add the following to android/app/build.gradle:

    ...
    
    dependencies {
        ...
        compile project(':react-native-app-launcher')  // react-native-app-launcher
    }
  • Add the following to android/app/src/main/AndroidManifest.xml:

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.reactnativeproject">
    
    <uses-permission android:name="android.permission.INTERNET" />
    
    <application
      android:allowBackup="true"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:theme="@style/AppTheme">
    
    ...
    
        <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
        <receiver android:name="io.cmichel.appLauncher.AlarmReceiver" />   <!-- react-native-app-launcher -->
        </application>
    
    </manifest>
  • Add the following to android/app/src/main/java/**/MainApplication.java:

    package com.motivation;
    
    import io.cmichel.appLauncher.LauncherPackage;  // add this for react-native-app-launcher
    
    public class MainApplication extends Application implements ReactApplication {
    
        @Override
        protected List<ReactPackage> getPackages() {
            return Arrays.<ReactPackage>asList(
                new MainReactPackage(),
                new LauncherPackage()     // add this for react-native-app-launcher
            );
        }
    }

Mofifying/Build the Project in Android Studio

  • Start Android Studio and select File -> New -> Import Project and select the android folder.
  • If you get a Plugin with id 'android-library' not found Error, install android support repository through the SDK manager.

react-native-app-launcher's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-native-app-launcher's Issues

Cancel the push notification icon

An icon of alarm clock appears on the top bar when i am setting an alarm.
Is there a way to cancel it?
Thanks,
(great repository by the way - i was searching for 2 days for repo similar to that)

IOS launcher

How would you achieve something similar in iOS?

Can it also wake the device?

The module works very good with launching the app, but when the screen is off, it doesn't wake the device. How can this be achieved here?

I am doing an alarm clock similair like your motivational app which wakes the device. I've been looking all over the source code for the thing that wakes it but to no avail. :(

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.