Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createFallbackNavBarInterpolation(previousProps, currentProps) {
// Use 250ms as transition duration
const driver = new TimingDriver({ duration: 250 });
driver.runTimer(1);
return {
backgroundColor: driver.value.interpolate({
inputRange: [0, 1],
outputRange: this.getColors('backgroundColor', previousProps, currentProps),
extrapolate: 'clamp',
}),
borderBottomColor: driver.value.interpolate({
inputRange: [0, 1],
outputRange: this.getColors('borderBottomColor', previousProps, currentProps),
extrapolate: 'clamp',
}),
};
}createFallbackNavBarInterpolation(previousProps, currentProps) {
// Use 250ms as transition duration
const driver = new TimingDriver({ duration: 250 });
driver.runTimer(1);
return {
backgroundColor: driver.value.interpolate({
inputRange: [0, 1],
outputRange: this.getColors('backgroundColor', previousProps, currentProps),
extrapolate: 'clamp',
}),
borderBottomColor: driver.value.interpolate({
inputRange: [0, 1],
outputRange: this.getColors('borderBottomColor', previousProps, currentProps),
extrapolate: 'clamp',
}),
};
}componentWillMount() {
this.timingDriver = new TimingDriver();
}componentWillMount() {
this.driver = new TimingDriver({
duration: 450,
});
}render() {
const driver = new TimingDriver({ duration: 6000 });
driver.runTimer(14);
return (render() {
const driver = new TimingDriver({ duration: 3000 });
driver.runTimer(1);
return (render() {
const driver = new TimingDriver({ duration: 3000 });
driver.runTimer(1);
return (constructor(props) {
super(props);
this.timingDriver = new TimingDriver();
this.onSwitchPressed = this.onSwitchPressed.bind(this);
this.setValue(props.value);
}render() {
const driver = new TimingDriver({ duration: 3000 });
driver.runTimer(1);
return (