Skip to content

Instantly share code, notes, and snippets.

View yildiz's full-sized avatar
❤️
in love with JavaScript

Volkan Yıldız yildiz

❤️
in love with JavaScript
View GitHub Profile
@yildiz
yildiz / ListItem.js
Created January 28, 2019 14:48 — forked from furkancelik/ListItem.js
React Native Animation Menu
import React, { Component } from "react";
import { Dimensions, Animated, Text, View } from "react-native";
const { height, width } = Dimensions.get("window");
export default class ListItem extends Component {
constructor(props) {
super(props);
this.show = new Animated.Value(0);
}
componentDidMount() {
@yildiz
yildiz / React Native zIndex Example
Created December 26, 2018 13:13
React Native zIndex Example
import React, {Component} from 'react';
import {StyleSheet, Text, View, Dimensions } from 'react-native';
export default class App extends Component {
render() {
return (
<View style={styles.wrapper}>
<View style={styles.back}>
<View style={{ backgroundColor: "#2156E9", flex: 1}}></View>
<View style={{ backgroundColor: "#fff", flex: 2}}></View>
@yildiz
yildiz / storage.js
Created March 4, 2018 12:34 — forked from rohozhnikoff/storage.js
[react-native] wrapped AsyncStorage with JSON support
import { AsyncStorage } from 'react-native';
const JSONAsyncStorage = Object.assign({}, AsyncStorage, {
getItem() {
return AsyncStorage.getItem.apply(null, arguments).then((res) => JSON.parse(res));
},
setItem(key, value) {
return AsyncStorage.setItem(key, JSON.stringify(value))
}
});
@yildiz
yildiz / meta-tags.md
Created October 9, 2016 14:34 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>