Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props, context) {
super(props, context);
this.animationDriver = props.driver || new ScrollDriver({ useNativeDriver: true });
this.setWrappedInstance = this.setWrappedInstance.bind(this);
}
render() {
const restaurant = this.getRestaurant();
const driver = new ScrollDriver();
return (
<title>{restaurant.name}</title>
{restaurant.address}
constructor(props) {
super(props);
this.renderRow = this.renderRow.bind(this);
this.driver = new ScrollDriver();
}
setupAnimationDriver(props, context) {
if (props.driver) {
this.animationDriver = props.driver;
} else if (context.driverProvider) {
this.animationDriver = context.animationDriver;
} else if (!this.animationDriver) {
this.animationDriver = new ScrollDriver({ useNativeDriver: true });
}
}