Skip to content

Instantly share code, notes, and snippets.

import React, { useState, useRef } from 'react';
import { Text, TextInput, View, NativeSyntheticEvent, TextInputKeyPressEventData, TextInputSelectionChangeEventData } from 'react-native';
import COLORS from '../styles/Colors';
import Styles from '../styles/Styles';
import PhoneNumberUtils from '../utils/PhoneNumberUtils';
const PhoneNumberEntryComponent =
({
phoneNumber,
setPhoneNumber,
@tandu
tandu / index.html
Created June 24, 2012 09:52
d3 transition step bug
<!DOCTYPE html>
<meta charset="utf-8">
<script src="http://mbostock.github.com/d3/d3.v2.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<body style="margin:0">
<p>This examples shows bug in ticks positioning if using step method for animation.</br>
Click timeline to animate. On animation end ticks are incorrectly positioned.</p>
<div id="timeline"></div>
<script>
var w = $('#timeline').width(),