Andrei Alecu

Results 277 comments of Andrei Alecu

I'd also like some sort of env variable to skip the check. Two examples: Can't install global packages using npm. Some tools rely on running `ng` directly without the `yarn`...

> I don't really understand why, as it works just fine on iOS. On Android, though, my app becomes completely unusable with the @formatjs polyfills. The formatjs polyfills have a...

I'm currently no longer using the polyfills. Everything works without polyfills as per Hermes engine 0.10 and later. However, Hermes 0.10 is not part of a stable React Native release...

> Do you mean that 0.10 Hermes supports Intl on IOS? Afaik Hermes does not support Intl on iOS yet. This thread is about Android, not iOS. I'm personally using...

Here's a quick benchmark: ```js const Benchmark = require("benchmark"); const { DateTime } = require("luxon"); const TimeAgo = require("javascript-time-ago"); const en = require("javascript-time-ago/locale/en"); const suite = new Benchmark.Suite(); const dt...

``` ➜ node benchmark.js luxon x 59,360 ops/sec ±0.69% (94 runs sampled) javascript-time-ago x 366,422 ops/sec ±0.28% (100 runs sampled) Fastest is javascript-time-ago ``` Still 6x slower than `javascript-time-ago` with...

I ended up not using `toRelative()` because of the performance problems with it on React Native Android, but as far as I remember it cannot display `just now`, no.

I think simply adding a bunch of `.mjs` files to the npm repository can't hurt anything. Also see: https://nodejs.org/api/esm.html#esm_conditional_exports Everything should stay backwards compatible even if modules were supported. https://nodejs.org/api/esm.html#esm_approach_1_use_an_es_module_wrapper

I don't think this is a Reanimated issue. This is how JavaScript works. You're actually calling `getInitialValue()` *yourself* (look at the code again). ~~I think you're looking for `useSharedValue(() =>...

I could be wrong, but you need to pass a dependency array to `useAnimatedReaction`, otherwise it's similar to `useEffect` and it runs on every render regardless of using any shared...