I hereby claim:
- I am aakashns on github.
- I am aakashns (https://keybase.io/aakashns) on keybase.
- I have a public key ASDJcqfR2DuLZOMPqSuNdaAmzsCTUMZxkAmBOS-AeMfdvgo
To claim this, I am signing this object:
| const fromStore = (state, db) => { | |
| db.ref('message').set(state.message); | |
| } |
| const fromDb = (db, dispatch) => { | |
| db.ref('/message').on('value', data => { | |
| if (data.val()) { | |
| dispatch({ type: 'SET_MESSAGE', payload: data.val() }); | |
| } | |
| }); | |
| }; |
| import { createStore } from 'redux'; | |
| const reducer = (state = {}, action) => { | |
| switch(action.type) { | |
| case 'SET_MESSAGE': | |
| return { | |
| ...state, | |
| message: action.payload | |
| }; | |
| // Handle other actions here |
I hereby claim:
To claim this, I am signing this object:
| import android.content.pm.PackageManager; | |
| import android.os.Build; | |
| /** | |
| * {@link PermissionHandler} provides a simple API to request Android permissions | |
| * at runtime. The class exposes one static method: {@link #request} which the | |
| * requesting activity should call to request or check for permission. The requesting | |
| * activity must implement {@link PermissionActivity}. | |
| */ | |
| public class PermissionHandler { |
| import org.json.JSONException; | |
| import org.json.JSONObject; | |
| import java.io.IOException; | |
| import java.lang.annotation.Annotation; | |
| import java.lang.reflect.Type; | |
| import okhttp3.ResponseBody; | |
| import retrofit2.Converter; | |
| import retrofit2.Retrofit; |
| package in.swiftace.firekit; | |
| import android.content.Intent; | |
| import android.os.AsyncTask; | |
| import android.support.annotation.NonNull; | |
| import com.facebook.accountkit.AccountKitLoginResult; | |
| import com.google.android.gms.tasks.OnFailureListener; | |
| import com.google.android.gms.tasks.OnSuccessListener; | |
| import com.google.firebase.auth.AuthResult; |
| import React, { Component } from 'react'; | |
| import { | |
| View, | |
| Text, | |
| } from 'react-native'; | |
| export default class App extends Component { | |
| render() { | |
| return ( |
| $ npm install react-native-cli@latest | |
| $ react-native init ReactMusic |
I hereby claim:
To claim this, I am signing this object: