mirror of
https://github.com/zhigang1992/react-native-reanimated.git
synced 2026-01-12 17:42:44 +08:00
Revert back to typeof to avoid ReferenceError: Can't find variable Proxy (#147)
This commit is contained in:
committed by
Michał Osadnik
parent
82f6608799
commit
74c520204f
@@ -57,9 +57,10 @@ function sanitizeArgMapping(argMapping) {
|
||||
},
|
||||
};
|
||||
|
||||
const proxy = Proxy
|
||||
? new Proxy({}, proxyHandler)
|
||||
: createEventObjectProxyPolyfill();
|
||||
const proxy =
|
||||
typeof Proxy === 'function'
|
||||
? new Proxy({}, proxyHandler)
|
||||
: createEventObjectProxyPolyfill();
|
||||
alwaysNodes.push(new AnimatedAlways(ev(proxy)));
|
||||
traverse(proxy, []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user