react-native-push-notification-popup
Advanced tools
Comparing version 1.4.0 to 1.5.0
{ | ||
"name": "react-native-push-notification-popup", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "React Native Push Notification Popup Component", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -121,3 +121,3 @@ import React, { Component } from 'react'; | ||
this.clearTimerIfExist(); | ||
Animated.timing(containerDragOffsetY, { toValue: 0, duration: 200 }) | ||
Animated.timing(containerDragOffsetY, { toValue: 0, duration: 200, useNativeDriver: true }) | ||
.start(({finished}) => { | ||
@@ -194,3 +194,3 @@ // Reset a new countdown | ||
const { containerScale } = this.state; | ||
Animated.spring(containerScale, { toValue: 0.95, friction: 8 }) | ||
Animated.spring(containerScale, { toValue: 0.95, friction: 8, useNativeDriver: true }) | ||
.start(); | ||
@@ -203,3 +203,3 @@ } | ||
const { containerScale } = this.state; | ||
Animated.spring(containerScale, { toValue: 1, friction: 8 }) | ||
Animated.spring(containerScale, { toValue: 1, friction: 8, useNativeDriver: true }) | ||
.start(); | ||
@@ -226,3 +226,3 @@ } | ||
const { containerSlideOffsetY } = this.state; // Using the new one is fine | ||
Animated.timing(containerSlideOffsetY, { toValue: 1, duration: duration || 400, }) // TODO: customize | ||
Animated.timing(containerSlideOffsetY, { toValue: 1, duration: duration || 400, useNativeDriver: true }) // TODO: customize | ||
.start(({finished}) => { | ||
@@ -244,3 +244,3 @@ this.countdownToSlideOut(); | ||
// Reset animation to 0 && show it && animate | ||
Animated.timing(containerSlideOffsetY, { toValue: 0, duration: duration || 400, }) // TODO: customize | ||
Animated.timing(containerSlideOffsetY, { toValue: 0, duration: duration || 400, useNativeDriver: true }) // TODO: customize | ||
.start(({finished}) => { | ||
@@ -247,0 +247,0 @@ // Reset everything and hide the popup |
20406