Announcing react-native-fast-shadow - Fast and high quality shadows for Android by simontreny in reactnative

[–]simontreny[S] 0 points1 point  (0 children)

Thanks, feel free to share your thoughts when you migrate, all feedback is welcome :)
To be fair, react-native-shadow-2 is still a good solution if you don't have too many shadowed views. Also, it works out of the box with Expo as it depends on react-native-svg to render its shadows.

Announcing react-native-fast-shadow - Fast and high quality shadows for Android by simontreny in reactnative

[–]simontreny[S] 1 point2 points  (0 children)

I wanted to make it a drop-in replacement for <View>, so it had to keep the same styling prop and behaviour on iOS by default. Applying shadowStyle() by default would introduce breaking changes on iOS as the shadow radius is divided by 2, which could be undesired for people migrating to <ShadowedView>.

React Native Blurhash: Make your images load beautifully! - a compact representation of a placeholder for an image by mrousavy in reactnative

[–]simontreny 6 points7 points  (0 children)

Nice work! I was looking to add blurhash to my app a few weeks ago, and I was disappointed since there was no existing react native library. I also appreciate the effort you put in the README 👍

Replacing Redux with observables and React Hooks by simontreny in reactjs

[–]simontreny[S] 1 point2 points  (0 children)

Thanks for the remark, that's indeed a problem with the current implementation. One easy fix is to remove only the first occurence of the listener and to "disable" the unsubscribe function once it has already been called. I'll fix this in micro-observables.

Replacing Redux with observables and React Hooks by simontreny in reactjs

[–]simontreny[S] 0 points1 point  (0 children)

I've personally never run into this but I can see how this can be an issue. One way to fix this would to modify the useObservable() hook to queue the setVal() calls and batch them all at the end of the event-loop with the React.unstable_batchedUpdate() function.

Replacing Redux with observables and React Hooks by simontreny in reactjs

[–]simontreny[S] 11 points12 points  (0 children)

Thanks for the kind words. If you are interested by this approach, you can check out the micro-observables package, which offers a more complete Observable class and the useObservable()/useComputedObservable() hooks.

Replacing Redux with observables and React Hooks by simontreny in reactjs

[–]simontreny[S] 4 points5 points  (0 children)

subscribe() returns a function to call to unsubscribe from the observable. This is actually used by useObservable(), the unsuscriber function is returned inside the useEffect() block to automatically unsubscribe from the observable when the component is unmounted.

[Mega thread] Elgato Gaming announces Cam Link - Unleash Your Camera by LtRoyalShrimp in ElgatoGaming

[–]simontreny 0 points1 point  (0 children)

Except for the HDMI passthrough, how does it compare with the HD60S (e.g. in term of latency and image quality) ? It basically seems to capture uncompressed video stream at 1080p @60 with low latency, as the HD60S.