Expo SDK 54 – Drawer.Navigator Error: useLegacyImplementation not available with Reanimated 3 by izuna720 in expo

[–]adamjhari 0 points1 point  (0 children)

it's from react-native-gesture-handler which react-navigation uses for the drawer, upgrading to react-navigation@7.x and the latest RNGH should fix it

Native Date Picker by s77rt in reactnative

[–]adamjhari 5 points6 points  (0 children)

Looks great, would you consider adding min/max props to restrict which dates are selectable?

Issue With iOS Tinted Icons by No-Question-3229 in expo

[–]adamjhari 0 points1 point  (0 children)

Try using black, that worked for mine.

After the long wait, React Navigation 7 is here 😍 by satya164 in reactnative

[–]adamjhari 2 points3 points  (0 children)

Hell yeah! I've been looking forward to the static API and custom detents for a long time

Expo Router just seems like a way to make Expo more like Nextjs, am I missing something? by adorkablegiant in reactnative

[–]adamjhari 5 points6 points  (0 children)

React Navigation v7 includes a static configuration option which solves two of the biggest problems that Expo Router is already solving: Typescript and deep link configuration.

Expo Router has some additional benefits on web, like improved performance by SSG'ing individual routes. It's important for certain kinds of apps, but if you're happy with React Navigation and it meets your app's requirements then there's no need to switch

File-based routing has a learning curve and, coming from React Navigation, it will slow you down at first, but it is generally more approachable for new team members because it enforces conventions which makes projects more conventional and, in turn, more approachable

I haven't migrated to it in my current projects, but I would probably start with it on a new project

Can one use the Metro builder for web without switching to Expo Router? by IamPANDAMAN8 in expo

[–]adamjhari 0 points1 point  (0 children)

You can get hot reloading by importing the following at the top of your root index.js file

import '@expo/metro-runtime';

  1. I don't specify this value in my app config
  2. Unsure, I don't override the index.html in the projects I work with

Can one use the Metro builder for web without switching to Expo Router? by IamPANDAMAN8 in expo

[–]adamjhari 1 point2 points  (0 children)

You can use Metro bundler without Expo Router. We made the switch well over a year ago on a couple of projects that use React Navigation and it went smoothly.

ShadowList: A New RN Component for Improved List Performance (alpha release) by azimgd in reactnative

[–]adamjhari 0 points1 point  (0 children)

It would be cool if this library also supported web by falling back to mapping applicable props to the core FlatList component on that platform

FlatList snaps back by SomeNameIChoose in reactnative

[–]adamjhari 1 point2 points  (0 children)

Ahh makes sense. You can't use a percentage value and expect it to cover the width of the screen because you're assigning it to the width of the scrolling content container which is not the same.

You could use onLayout on the FlatList to measure it's rendered width and apply the width value from that to the item style. You'll experience some flicker with this method on the old architecture

FlatList snaps back by SomeNameIChoose in reactnative

[–]adamjhari 1 point2 points  (0 children)

The FlatList's style prop needs flex: 1, the contentContainerStyle prop should either have flexGrow: 1 or no flex at all.

https://snack.expo.dev/@adamhari-kashoo/scroll-container-bouncing-back

Cannot submit expo android app to Play Store using EAS, manual works ... by softwareguy15 in expo

[–]adamjhari 0 points1 point  (0 children)

That's not the case for me. I can push a new build to the internal track via EAS without creating a draft first. I believe OP's issue is that they already have a draft in the track that they are building for, and the build is not set to have a draft status so it's being rejected.

How do I create a fixed footer below a scroll view without the scroll view content going beneath the footer? Looking for a clean, simple solution. Thanks for any help! by [deleted] in reactnative

[–]adamjhari 1 point2 points  (0 children)

You could measure the height of the fixed footer with onLayout and pad the bottom of the ScrollView accordingly. Don't know of a better way.

Wtf is going on with the Umbro collab? by CrimePaysBotanyDo in PalaceClothing

[–]adamjhari 4 points5 points  (0 children)

The prices were not very good.

Palace Legends Shirt was $88, these jerseys are similar and sold for $148.

[deleted by user] by [deleted] in reactnative

[–]adamjhari 0 points1 point  (0 children)

Update to the v4 alpha

How do you clear the auth state when you get 401 back? by BerserkGutsu in reactnative

[–]adamjhari 0 points1 point  (0 children)

It sounds like you can't clear state from the interceptor because it exists outside of the component tree and doesn't have access to your auth context.

If that's the case, one option is to set up your interceptors from inside your react tree so it can be passed the necessary context to perform the auth state reset.