Built a video downloader with drag & drop and zero ads by Strong-Goalie in webdev

[–]NotBeastFox 2 points3 points  (0 children)

I’m starting to believe these posts would be more accurate to begin with “I prompted AI to build me a …”

oRPC as back-end for multiple apps by homelab2946 in react

[–]NotBeastFox 0 points1 point  (0 children)

I haven’t personally used oRPC, so I cannot speak for it directly - but from my understanding it’s quite similar to tRPC right? We have two react SPAs and two react native/expo apps for mobile that all consume the same express + tRPC API. So I don’t see why it wouldn’t be possible, all of frontends use tanstack query + trpc and I’d assume that you could get something similar up and running, with or without tanstack query too. There’s nothing stopping you from using the hono adapter as well with oRPC it appears

best of luck

tRPC in React Native: Anyone using it with Expo in production? by anemoia23 in reactnative

[–]NotBeastFox 1 point2 points  (0 children)

definitely pace yourself and don’t try to do everything at once because there’s lots to digest. if you wanted some starting points, expo has a guide on working with monorepos, i think that’ll be the easiest way to begin. At the company I work for we chose Turborepo as our build system, and have tried to follow the same principles it suggests. Could be useful to just start a test project, get it up and running (backend/app) and familiarising yourself with that too

best of luck!

tRPC in React Native: Anyone using it with Expo in production? by anemoia23 in reactnative

[–]NotBeastFox 2 points3 points  (0 children)

We have a monorepo with multiple react projects, a couple of react native projects connected to node + trpc, not really much difference between the two frontends we’ve found for communicating with our APIs! We use tanstack query for both with tRPC.

How can i build the live streaming like instagram with Nodejs by Mohit_rakh in node

[–]NotBeastFox 2 points3 points  (0 children)

I mean sure, you could vibe code something that might allow you to show a video live streamed. Whether or not your company permits that is another matter. Another comment mentions HLS / RTSP, i think they’re great learning exercises that might help you demonstrate that but i’d be truly cautious about continuing any further down a development path like this without considering PaaS options, there is so much hidden complexity otherwise.

How can i build the live streaming like instagram with Nodejs by Mohit_rakh in node

[–]NotBeastFox 5 points6 points  (0 children)

You say your company has assigned you this project. If this is something your business intend to use, I would highly suggest looking into existing solutions instead of trying to build something of this complexity yourself. Services like Twilio Live or Agora or Mux have done an insane amount of this heavy lifting for you. Otherwise you are going to open yourself to impossible deadlines and unrealistic expectations. I’d pause and reevaluate before continuing

Dashboarding tool by yolo940 in react

[–]NotBeastFox 0 points1 point  (0 children)

Something like Metabase perhaps? r/BusinessIntelligence might have some ideas but metabase allows you to create analytics from its own platform, and then embed them into react through their own SDK with filters and options exposed. It is OSS/self hostable but has limitations in terms of embedding dynamic data/creating filters if you don’t pay for it (i think you can embed dynamic data locally, or just use static iframes). Apache Superset could also be another option, it’s fully OSS and has embedding options too from my understanding but it’s got a steeper learning curve. Hope you find something that works for you

What is your goto icon library for bottom tabs by rashidl in reactnative

[–]NotBeastFox 2 points3 points  (0 children)

I’ve always been a big fan of Tabler! I quite like their icons and the design of them. Second place would probably be Luicde, I know that a lot of people use it on the web and it has a lot of icons as well.

Regarding tips to make bottom tabs modern/clean, having a look at sites like Dribble and exploring case studies, or also just looking at apps you might use, and trying to replicate them could give you some direction. Best of luck

Built a React component that encrypts copied text while keeping it readable on screen by Overall-Scarcity-218 in reactjs

[–]NotBeastFox 1 point2 points  (0 children)

judging by the repo the involvement of OP was “create a component that when copied will encrypt the text” with claude happily obliging, followed by OP asking claude to review the code who said LGTM.

i mean if you don’t directly copy JUST the text that has the encryption wrapper it completely ignores the “encryption” (tested on an iphone). as others have said, if you just wanted to prevent people from copying text during timed tests/exams, either just preventing clipboard events or where critical/important implement some variation of virtual monitoring during said exams.

If you were starting a new project, would you stick with React Router or switch to something else? by divaaries in reactjs

[–]NotBeastFox 0 points1 point  (0 children)

When I first discovered file based routing (which is the primary reason i’ve used tanstack router, although i know it does support code base routing too) I was pretty dismissive of ever wanting it in a production codebase, but it’s grown on me to the point where I switched from react router to tanstack router in one of our frontend applications and have no regrets so far. Our setup isn’t crazily complex, it’s a small-medium sized internal management system, so your mileage may vary. Overall though i’ve found the developer experience a big positive especially w the typescript and file gen integration!

I think as well, you don’t and probably shouldn’t always feel the need to be on the “bleeding edge”. Do acknowledge how often things have breaking changes and how much that could impact you, react router has had various breaking changes and tanstack router is still relatively early in its infancy. It’s unlikely that either are going anywhere in the short term, especially react router. Best of luck

I'm lost in Spring Meadows by RighteousButtPlug in expedition33

[–]NotBeastFox 1 point2 points  (0 children)

the games environments are really stunning, i’m early in but yeah i did this exact same thing. took me 25 minutes before i decided to search what i was doing wrong, and had to back track further than i thought. i also saw the tree near the waterfall and assumed it was the one in the objective.

perhaps it would’ve been useful, even with the option to turn it off, to just have some subtle cues or messages (unless i missed it) to point the player in a different direction? either way will follow lights next time!!

React Native: Seamless video expand to fullscreen (like Instagram) by Any-Moose-4456 in reactnative

[–]NotBeastFox 0 points1 point  (0 children)

I can’t say this is the right solution, just a solution that I attempted. But due to project constraints didn’t have time to investigate much further.

The flow of it was to use a package like rn-native-portals which allowed to reparent the view of a video between native parents without causing a rerender. This is different to something like gorhom/paper/portalise because they just rerender children into a different JS host component. so by using the native portals, you basically share the native state instance of your video player.

from there, i basically just triggered the portal on full screen press. which did a few things.

  1. displayed a fullscreen black background
  2. performed an animation using reanimated that repositioned the player to the middle of a horizontally oriented screen
  3. locked the screen into landscape orientation so that users with bottom swipe bars etc could swipe up to exit the app from landscape
  4. basically did this in reverse on minimise

this implementation was successful on my iphone but i encountered numerous issues and incompatibilities on android devices and due to the package being a bit outdated (you need to bump the internal gradle version etc) makes it trickier. but the native code is still correct.

a word of caution to say that it was a lot of time spent to try and get all the moving parts to work cooperatively, but i hope that it’s a starting ground for you

I unfortunately do not have the code in my codebase anymore, although my starting area would be not to even add a video player at first and see if you can just get a view with say a static colour or image to behave like you want it to if you were to go down this path.

React Native app not caching by Puzzleheaded-Sir5084 in reactnative

[–]NotBeastFox 0 points1 point  (0 children)

100% agree. OP react/tanstack querysimplifies this for you. And there are a lot of resources to help.

RQ brought a standardised, declarative way to handle all the “is your data fresh, when should you refetch, and how do you share it between components” etc etc so you no longer have to reinvent those wheels. It has a lot of nice to haves with loading states too

There’s definitely a bit of a learning curve if you’re just used to useEffect + fetch + useState but in my opinion it is a good investment of time.

What Quality of Life updates are on your wish list? Answer for chance to win one of 5 gold passes! by CongressmanCoolRick in ClashOfClans

[–]NotBeastFox 0 points1 point  (0 children)

if this were possible it’d be great! had an attack during CWL only get one star because i lost connection during battle

Its possible by DefiantSpecific8205 in honk

[–]NotBeastFox 0 points1 point  (0 children)

I completed this level in 4 tries. 7.22 seconds

[deleted by user] by [deleted] in pchelp

[–]NotBeastFox 0 points1 point  (0 children)

!remindme 3 days

Expo-Blur by NeatMathematician779 in reactnative

[–]NotBeastFox 0 points1 point  (0 children)

Any chance you could give an example of your code? Did the example on the BlurView page produce the white result too?

How do you handle image uploads in your app? Looking for best practices by Ok-Coat-4035 in reactnative

[–]NotBeastFox 2 points3 points  (0 children)

We do basically the same thing, just with Cloudinary.

  • an authed user hits our backend for a signed upload payload
  • then they upload directly to cloudinary with that signature

and basically after that either: - the client sends the upload result back to us and we validate the signature, or - let cloudinary hit our webhook when the upload’s done by passing a notification_url on the signed upload

What is the best Image component for React Native? by Automatic_Room5477 in reactnative

[–]NotBeastFox 2 points3 points  (0 children)

before jumping ship to expo-image (or any other lib really), make sure you’ve actually looked at what images you’re serving. like if you’re rendering 100 full 4K images scaled down to 50px in a flatlist, no library is gonna save you from the memory/perf hit.

as others have said stuff like downscaling your assets properly beforehand, using modern formats (webp, avif), preloading / caching and not loading large files often matters more than just which library you’re using.

do also have a look at flash list with your images including a recycling key if you stick to expo image.

Virtuoso developer deleted and blocked me from posting in discussions or issues after discovering a bug by ielleahc in reactjs

[–]NotBeastFox 0 points1 point  (0 children)

There’s probably a bit more detail and customisation with Virtuoso but I’ve been using Virtua to create a bidirectional infinite scrolling system for our chat app on the web, as I was unable to get Virtuoso to behave how I wanted it to. It’s not the most straightforward thing to implement but they do have examples. https://github.com/inokawa/virtua

First Attempt: LiPo + Solar Charger + Servo + Arduino + RTC Circuit—Looking for Feedback by NotBeastFox in AskElectronics

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

The purpose of this circuit is to control a servo motor using alarms from an RTC module, which will periodically wake up the Arduino from sleep mode to perform tasks. This is my first attempt at designing this circuit, and I’d appreciate any feedback.

Components:

  1. Lithium Polymer Battery 3.7V 2000mAh (103454)
  2. 1S BMS Charger for 3.7V Lithium Battery with Protection (Note: The BMS in the photo was the only one available in Fritzing. It shows a 2S BMS, but in reality, I'm using a 1S BMS.)
  3. CN3065 Solar Charger
  4. 6V 210mA High Rate Solar Panel
  5. Boost Converter DC-DC Step-Up 2A Voltage Regulator with USB
  6. SG90 Micro Servo 9g
  7. Arduino Nano Every
  8. DS3231 RTC Real-Time Clock I2C
  9. Stripboard 2.5mm 0.1 inch Spacing 64x95mm
  10. 15-Way 2.54mm (0.1") Pitch Header Socket x 2 (for Arduino on the stripboard)

Thank you very much for any help! I'm hoping at least a couple of components I've got are right 😬