Skip to content

Instantly share code, notes, and snippets.

🎯
Busy

Nazır Doğan nazrdogan

🎯
Busy
Block or report user

Report or block nazrdogan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sd
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'
View reducers.js
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,
View reducer.js
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';
View drawer.js
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { createBottomTabNavigator,createDrawerNavigator } from 'react-navigation';
import { NavigationActions } from 'react-navigation';
class HomeScreen extends React.Component {
render() {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
@nazrdogan
nazrdogan / pricetag.js
Created May 6, 2018
React Native Price Tag
View pricetag.js
import React, { Component } from 'react'
import {
AppRegistry,
StyleSheet,
Text,
View,
} from 'react-native'
class App extends Component {
render() {
View web.js
<script>
document.addEventListener("message", function (event) {
let parsed = JSON.parse(event.data);
if (parsed.type === "photo") {
setPhoto(parsed.params);
}
if (parsed.type === "location") {
setLocation(parsed.params);
}
});
View deleteproperty.js
static getDerivedStateFromProps(nextProps, prevState) {
if (nextProps.carListReducer.list.length === 0 && !nextProps.carListReducer.error) {
return {
var newState = Object.assign({}, prevState);
delete newState.showSpinner;
return newState;
};
}
else {
return {
@nazrdogan
nazrdogan / carousel.js
Created Apr 19, 2018
React Native Carousel
View carousel.js
View gist:87c63e89a2bfd4cefee24990e4e7ed0e

Install npm module

npm install react-native-maps --save

Top-Level build.gradle

add google() and change classpath com.android.tools.build:gradle:3.0.1

// Top-level build file where you can add configuration options common to all sub-projects/modules.
You can’t perform that action at this time.