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.reactnavigation.example; | |
import com.facebook.react.ReactActivity; | |
+ import com.facebook.react.ReactActivityDelegate; | |
+ import com.facebook.react.ReactRootView; | |
+ import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; | |
public class MainActivity extends ReactActivity { | |
@Override |
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
saveCanvasImage() { | |
var dataUrl = this.canvasElement.toDataURL(); | |
var imageData = this.canvasElement.toDataURL('image/jpeg').replace(/^data:image\/(png|jpg|jpeg);base64,/, ""); //remove mimetype | |
window["DatecsPrinter"].printImage( | |
imageData, //base64 | |
canvas.width, | |
canvas.height, | |
1, | |
function() { | |
console.log("Printed"); |
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
window["DatecsPrinter"].listBluetoothDevices( | |
function (devices) { | |
window["DatecsPrinter"].connect(devices[0].address, | |
function() { | |
printSomeTestText(); | |
}, | |
function(error) { | |
alert(JSON.stringify(error)); | |
} | |
); |
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 { | |
compile project(':react-native-vector-icons') | |
compile project(':react-native-fetch-blob') | |
compile project(':react-native-snackbar') | |
compile project(':react-native-video') | |
compile project(':react-native-maps') | |
compile project(':react-native-camera') | |
compile project(':react-native-splash-screen') | |
compile (project(':react-native-camera')){ | |
exclude group: 'com.google.android.gms' |
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 { combineReducers } from 'redux'; | |
import { reducer as reduxFormReducer } from "redux-form"; | |
import authReducer from './auth_reducer'; | |
import main from './main' | |
import BookingData from './booking_reducer'; | |
import StepOne from './stepone'; | |
import StepTwo from './stepTwo' | |
const AppReducer = combineReducers({ | |
form: reduxFormReducer, |
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 { combineReducers } from "redux"; | |
import { nav } from "./routeReducer"; | |
import * as ActionTypes from '.././constant/actionTypes'; | |
import { reducer as formReducer } from 'redux-form' | |
import { locationReducer as location } from 'redux-saga-location'; | |
import {reducer as network} from 'react-native-offline'; | |
// Pages Reducers | |
import loginReducer from '.././pages/Login/loginReducer'; |