Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Busy

Nazır Doğan nazrdogan

🎯
Busy
View GitHub Profile
View ViewController.m
//
// ViewController.m
// RNClip
//
// Created by Nazir Dogan on 30.06.2020.
//
#import "ViewController.h"
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
View appclip.js
import { AppRegistry, View, Text, Button } from 'react-native';
import React from 'react';
const AppClip = () => (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Text style={{ fontSize: 22 }}>
React Native App Clip
</Text>
<Button
title="Learn More"
color="#841584"
View appclip.js
import { AppRegistry, View, Text, Button } from 'react-native';
import React from 'react';
const AppClip = () => (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Text style={{ fontSize: 22 }}>
React Native App Clip
</Text>
<Button
title="Learn More"
color="#841584"
View Onboard.swift
//
// AppDelegate.swift
// ecommerce
//
// Created by Nazir Dogan on 10/10/2016.
// Copyright © 2016 Nazir Dogan. All rights reserved.
//
import UIKit
import IQKeyboardManagerSwift
@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 clear-cache
rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && npm cache clean --force && npm cache verify && rm -rf ios/build && rm -rf node_modules/ && npm i
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.
View orange.swift
//
// ComNextchapterOrangeModule.swift
// orange
//
// Created by Your Name
// Copyright (c) 2019 Your Company. All rights reserved.
//
import UIKit
import TitaniumKit
View drawer.js
class MyHomeScreen extends React.Component {
static navigationOptions = {
drawerLabel: 'Home',
drawerIcon: ({ tintColor }) => (
<Image
source={require('./chats-icon.png')}
style={[styles.icon, {tintColor: tintColor}]}
/>
),
};
@nazrdogan
nazrdogan / fix_exfat_drive.md
Created Feb 14, 2019 — forked from scottopell/fix_exfat_drive.md
Fix corrupted exFAT disk macOS/OSX
View fix_exfat_drive.md

exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.

Disk Utility is unable to repair this at first, but the fix is this:

  1. Use diskutil list to find the right drive id.
  2. You want the id under the IDENTIFIER column, it should look like disk1s1
  3. Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3
  4. -d is debug so you'll see all your files output as they're processed.
  5. Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?
You can’t perform that action at this time.