AnimatedValueSubscription.js 265 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 import { Animated } from 'react-native'; export default class AnimatedValueSubscription { constructor(value, callback) { this._value = value; this._token = value.addListener(callback); } remove() { this._value.removeListener(this._token); } }