Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am donhv on github.
  • I am leehoo01 (https://keybase.io/leehoo01) on keybase.
  • I have a public key ASDVtYmZkWbfC-NOzHCLouaeQmi6_GE-ROTuohXzluXMswo

To claim this, I am signing this object:

@Donhv
Donhv / TabParallax.js
Created March 13, 2019 12:59 — forked from andigu/TabParallax.js
A react native component featuring parallax scrolling with tabs
import React, {Component} from "react";
import {Animated, Dimensions, Platform, Text, TouchableOpacity, View} from "react-native";
import {Body, Header, List, ListItem as Item, ScrollableTab, Tab, TabHeading, Tabs, Title} from "native-base";
import LinearGradient from "react-native-linear-gradient";
const {width: SCREEN_WIDTH} = Dimensions.get("window");
const IMAGE_HEIGHT = 250;
const HEADER_HEIGHT = Platform.OS === "ios" ? 64 : 50;
const SCROLL_HEIGHT = IMAGE_HEIGHT - HEADER_HEIGHT;
const THEME_COLOR = "rgba(85,186,255, 1)";
@Donhv
Donhv / ButtonRadio.txt
Last active June 21, 2018 13:58
react-native button-radio
export default class ButtonRadio extends React.Component {
constructor(props) {
super(props);
this.state = {
itemSelected: 1,
multiItemSelected: [1, 2]
};
}
render() {
return (