This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/vishnuramineni/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout | |
android:id="@+id/RelativeLayout01" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:background="@drawable/call_bg"> | |
<RelativeLayout | |
android:id="@+id/callInfoLayout" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { DeviceEventEmitter } from 'react-native' | |
class MainComponent extends Component { | |
componentDidMount() { | |
DeviceEventEmitter.addListener('accept', () => { | |
//Do something! | |
}) | |
DeviceEventEmitter.addListener('reject', () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainApplication extends NavigationApplication { | |
@Override | |
public boolean isDebug() { | |
// Make sure you are using BuildConfig from your own application | |
return BuildConfig.DEBUG; | |
} | |
protected List<ReactPackage> getPackages() { | |
// Add additional packages you require here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IncomingCallScreenActivity extends ReactActivity { | |
private static final String TAG = "MessagingService"; | |
private Ringtone ringtone; | |
LocalBroadcastManager mLocalBroadcastManager; | |
BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { | |
@Override | |
public void onReceive(Context context, Intent intent) { | |
if(intent.getAction().equals("com.incomingcallscreenactivity.action.close")){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FirebaseMessagingService | |
extends FirebaseMessagingService { | |
private static DeviceEventManagerModule.RCTDeviceEventEmitter eventEmitter = null; | |
@Override | |
public void onMessageReceived(RemoteMessage remoteMessage) { | |
try { | |
String notifDataType = remoteMessage.getData().get("type"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> | |
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> | |
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | |
<permission | |
android:name="android.permission.INTERACT_ACROSS_USERS_FULL" | |
android:protectionLevel="signature" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"to":<DeviceToken>, | |
"data": { | |
"type": "incomingcall", | |
"callerName":"Alex" | |
}, | |
"priority": "high" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"dependencies": { | |
"react": "16.0.0-alpha.12", | |
"react-native": "0.60.0", | |
"rn-android-overlay-permission": "file:../node_modules/rn-android-overlay-permission" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.overlaypermission; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import com.facebook.react.ReactPackage; | |
import com.facebook.react.bridge.NativeModule; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.uimanager.ViewManager; |
NewerOlder