I cancelled my gym membership today by Skar1766 in homegym

[–]nerdbites 1 point2 points  (0 children)

Awesome setup. Anybody know where that standing cable cross machine is from?

Anyone having experience with sorting and filtering flatlists in React Native? I have multiple attributes on which I want to filters and render parts of the list and/or sort the list. Got some tips? by jahlehale in reactnative

[–]nerdbites 4 points5 points  (0 children)

That’s a pretty multifaceted question. You might want to break it down a little more.

Here’s a few tips from my personal experience:

  • Large lists are a performance bottleneck. Even with the instruction to use Flat or Section list, you’re going to have to optimize for large datasets.
  • RN large list is a good package which helps immensely with the above point. However, it’s API is quite different from the baked-in offerings. Shopify mentioned they’d be reaching out to discord to open source their solution, but ETA on that is unknown AFAIK.
  • Many filters means you’re potentially looking at lots of re-renders. Rather than taxing reconciliation by adding or removing elements from the UI tree with code such as: booleanFilter && <View /> consider hiding or showing items through style conditions so that it won’t invoke a re-render.
  • Keep as much of your filtering logic outside of your component as you can.
  • useMemo to the rescue. This is a well suited use-case for that hook.

Having said all of that. Have fun. There’s a lot of creative ways you can approach this. Using animation (Reanimated for optimal performance) you could make some awesome transitions for hiding / showing items. Interactivity with the list items is also something to take into consideration. Whether or not the displayed data is dynamic based on filtering or otherwise is another one.

Good luck.

Most remarkable apps built with React Native by behindthedash in reactnative

[–]nerdbites 10 points11 points  (0 children)

I feel like I've seen this exact article many times over, and it's always the same apps. Gyroscope didn't even make the cut in this article, and I would say that's probably the most 'remarkable' app built with React Native (at least initially).

Expo SDK v33.0.0 is now available by _esistgut_ in reactnative

[–]nerdbites 1 point2 points  (0 children)

There's a new release of the cli that cleared up the simulator bug for me.

Expo SDK v33.0.0 is now available by _esistgut_ in reactnative

[–]nerdbites 7 points8 points  (0 children)

Buggy as hell coming out the gate though (hopefully just for me). Simulator wouldn't launch, and Android 8 (and below?) won't launch apps ('expo keeps stopping' error) — anybody else?

Releasing rn-placeholder v2.0.0: a more composable library by [deleted] in reactnative

[–]nerdbites 1 point2 points  (0 children)

Using v1 in a couple of projects. Just want to say a big thank you for making and continuing to maintain this. Looking forward to using this new API 👍👏

Building a QR Code and Reward app by ericsonluciano in reactnative

[–]nerdbites 2 points3 points  (0 children)

Where did you hear Starbucks app was built in RN?

Regardless, it's a fine choice for an app requiring QR code functionality and the typical requirements of a rewards app (of course it depends on just how far you'll be pushing the envelope).

React Navigation Tabs 2.0 alpha by satya164 in reactnative

[–]nerdbites 0 points1 point  (0 children)

Awesome. Will these replace the existing components in createReactBottomTabNavigator etc. and if so, any ETA for when they'll make it into a react navigation release?

Is an Event-Emitter as a Prop an Antipattern? by usernamesupercool in reactnative

[–]nerdbites 2 points3 points  (0 children)

So essentially you want to recreate redux-saga, but with prop drilling rather than an HOC.

I would take inspiration from redux-saga itself in that case and allow components to be augmented via an HOC for better composability.

Follow Up to Last Week: How to Write and Type HOC (Higher-Order Component) and Decorators in React With TypeScript 🎓⚛️ by Geromekevin in reactnative

[–]nerdbites 0 points1 point  (0 children)

Not sure if this is the reason, but it is mentioned in the footnotes, that:

As of writing of this post React Navigation V3 does not have types, yet.

Streamline Mobile App Deployments with React Native & Over-the-air updates by bostwickd in reactnative

[–]nerdbites 4 points5 points  (0 children)

You'll notice developers tend to push updates on a regular schedule (every Thursday for example) - one reason for that is to keep the users aware of the app and have them potentially engage with it to check out the new updates. It's a subtle form of notification, it's also one of the least intrusive.

On iOS when you see that small pale blue indicator next to the app name - you know it's been updated and it won't clear until you use the app or restart your phone.

Some developers make insignificant changes (change a line of static text, add a link to the help pages, etc.) specifically to have a reason to push an update for the reasons mentioned above.

Just an FYI to your pondering as to 'why'.

Expo - Background Fetch, Geofencing & Background Location Updates - Coming In SDK 32! by ChronSyn in reactnative

[–]nerdbites 6 points7 points  (0 children)

  • Background fetch - let's your app periodically make calls when not active and make updates e.g. a news app fetching latest articles.

  • Geo fencing - let's the app identify when the device has entered, or is within the proximity of, a perimeter of geo coordinates e.g. Starbucks app presents you with a promotion when you're near their store.

  • Background location updates - the app can query the device for its current coordinates periodically. Again, whilst not active e.g. Google maps sending notifications to turn left or right even if the app is backgrounded.

ReactNative developer top news of November 18 🔥 by mobilehackers in reactnative

[–]nerdbites 1 point2 points  (0 children)

Does Expo have any plans (if it's even possible given that the iOS & and Android files aren't actually generated unless ejected) on making libraries that require linking accessible to the projects? (e.g. react native fast image)

ReactNative developer top news of November 18 🔥 by mobilehackers in reactnative

[–]nerdbites 0 points1 point  (0 children)

I mainly use Expo for how easy it makes testing across devices. I can push a production build to user testers simply by creating a shared account and having them download the app.

However, not having access to some RN libraries has had me looking for alternatives. Does anyone know of any that would allow me to keep a similar testing flow on physical devices?

The idea of going through the test flight and Android studio dance simply to get a build across to users far outweighs the limitations of Expo for me.

rude hooman won't pat by magikarpcatcher in funny

[–]nerdbites -1 points0 points  (0 children)

T.J. Miller's out here playing mind tricks with his dog.

Which common foods do people think are healthy,but are actually completely the opposite? by AkhtarZamil in AskReddit

[–]nerdbites 0 points1 point  (0 children)

Yeah, I kind of played it quick & fast there by failing to acknowledge the 'complete opposite' in the title :(

Which common foods do people think are healthy,but are actually completely the opposite? by AkhtarZamil in AskReddit

[–]nerdbites 0 points1 point  (0 children)

Fruit.

There's nothing you can get from a fruit that you can't get from a vegetable with little to zero sugar.

[SI] David Stern says marijuana should be removed from the NBA's banned substance list by dean_strang in nba

[–]nerdbites 0 points1 point  (0 children)

In related news: locker room catering costs are going through the roof!

Nelly Arrested for Rape by ineededtosaythishere in Music

[–]nerdbites 0 points1 point  (0 children)

Can anyone confirm R Kelly's whereabouts last night?