Skip to content

Instantly share code, notes, and snippets.

View nazrdogan's full-sized avatar
🎯
Busy

Nazır Doğan nazrdogan

🎯
Busy
View GitHub Profile
import React from "react";
import { View, Text } from "react-native";
import { Button } from 'react-native-paper';
import { createStackNavigator, createAppContainer } from "react-navigation";
class HomeScreen extends React.Component {
render() {
return (
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
<Button mode="contained" onPress={() => this.props.navigation.navigate("Detail") }>Detaya Git</Button>
import React from "react";
import { View, Text } from "react-native";
import { createStackNavigator, createAppContainer } from "react-navigation";
class HomeScreen extends React.Component {
render() {
return (
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
<Text>Home Screen</Text>
</View>
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
@nazrdogan
nazrdogan / nav.js
Last active December 6, 2018 21:14
nav.js
import React from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import {
addNavigationHelpers,
StackNavigator,
TabNavigator
} from "react-navigation";
/*
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");
window["DatecsPrinter"].listBluetoothDevices(
function (devices) {
window["DatecsPrinter"].connect(devices[0].address,
function() {
printSomeTestText();
},
function(error) {
alert(JSON.stringify(error));
}
);
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'
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,
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';