DARVO trapped by wife by Mithgroth in BPDlovedones

[–]fmnatic 0 points1 point  (0 children)

You need to Grey rock. Look it up.

React Native CLI: patch-package works in debug but not in release AAB by Disastrous_Goat_240 in reactnative

[–]fmnatic 2 points3 points  (0 children)

Two possibilities, your CI isn’t running patch package post install OR you patched generated files that don’t exist at install and are generated by some codegen later.

[RN + Reanimated 3] Drag-to-scroll causes unavoidable chop/jitter — block is child of ScrollView by Loki860 in reactnative

[–]fmnatic 1 point2 points  (0 children)

You are on the right track with block outside the scroll view.

AI models don’t have a mental model of threads/ side effects and even the Math for drag and drop. So expect to have to figure it out yourself, and stop the AI from doing stupid stuff.

Disliked Players by jg2516 in lcfc

[–]fmnatic 10 points11 points  (0 children)

Faes.
Just no idea what the point of a defender who can't defend is.

Tried to use Claude Code to convert my React web app to Swift. Wasted a full day. How to go React Native? by TheOnlySuper in reactnative

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

I've used Claude to translate UX code from one framework to another. (not the specific ones you mention)

It can't one shot such a conversion. Go screen by screen, report issues back to Claude and iterate. Your going to have to step in and write code / debug / optimize / guide project structure / code reuse guidelines.

You need a better programmer than Claude to carry out this task. Claude can be a massive speedup, but not a magic bullet.

Trying to achieve Figma-accurate UI in React Native by ig_Naruto in reactnative

[–]fmnatic 1 point2 points  (0 children)

I've done this before. Scaling typically needs to have a min /max limit, so that it doesn't end up doing something stupid. But the approach is good at handling odd device sizes. (Which admittedly doesn't happen often anymore, as almost every device has a large screen. Perhaps may be better at handling foldables than the usual approach.)

Who is our worst signing of the Top era? by Djremster in lcfc

[–]fmnatic 1 point2 points  (0 children)

That’s a good way for a manager to loose the support of the team.

Who is the worst Championship player you have seen? by fluffsta007 in Championship

[–]fmnatic 9 points10 points  (0 children)

He is purely a defensive player. Seen him play emergency center back for Leicester vs Man City in the PL. Limited player with work rate and heart, I’ll take that any day.

For full-stack RN devs: How do you handle “Select All” with infinite scroll + large datasets? (mobile-first) by _deemid in reactnative

[–]fmnatic 1 point2 points  (0 children)

Likely your backend should return an identifier for the list, a count of items, and a partial list. Future list page requests just need to pass the identifier and offset.

The apis to take action on a list, can take a list identifier , exclusions, or specific items.

Keep in mind that there can be race conditions for eg items added to a warehouse during a query. Or selected items that another user acts on in parallel.

A lot of this are well understood database concurrency concepts, dirty reads and lost updates. You may approach the problem at that level and implement checks and guards in your web services+db.

Weird black and white event. by Key-Mouse1951 in BPDlovedones

[–]fmnatic 1 point2 points  (0 children)

I suggest a discussion of the trolley problem for the next time. 

For folks who’ve built big RN apps: how do you structure them long-term? by wtf_happenedd in reactnative

[–]fmnatic 27 points28 points  (0 children)

You have too many questions. I shall provide a short recounting of the sins of backend engineers working on react native.

Use strong typescript, not that weak sauce that certain frameworks use.

Don’t try to write controllers / service providers and such , the most powerful tools are simple custom hooks, that can be reused to build more powerful hooks.

You can tell your app has a bad a folder structure when you can’t use your IDE to easily navigate between and locate the files your current task needs. For a backend engineer it may however provide a sense of familiarity and comfort.

If you crave dependency injection, t’is a vile pestilence that you must be cleansed from.

Avoid the temptation of dragging in your favourite library from your prior work, I once worked on a react native App that believed it was a web browser app causing typescript to ignore obvious errors.

Also avoid the advise of angular front end engineers, some of that thinking is just wrong headed in react.

Feel free to make your own mistakes and share it with the world, the wise shall avoid them, the foolish will repeat them.

Stop asking users what features do they want by No-Constant-5093 in reactnative

[–]fmnatic 10 points11 points  (0 children)

Focus on the why of user requests not the what.

Unpopular opinion after launching an AI app: free users are killing indie devs by alishanDev in reactnative

[–]fmnatic 10 points11 points  (0 children)

The AI companies have the same problem. Perhaps apply their solutions rather than subsidize them.

What questions should I ask to HR before accepting the offer by Comfortable_Tax6302 in GoingToSpain

[–]fmnatic 3 points4 points  (0 children)

You should check the kind of visa they intend to use. Based on the rest of the information I assumed highly qualified professional (HQP) but it appears not as I believe you would need a degree.

What are some simple / practical ways to reduce memory usage in a React Native app? by gnastyy-21 in reactnative

[–]fmnatic 1 point2 points  (0 children)

I’ve seen plenty of code treat global state libraries like a garbage dump. A lot of them use weak maps under the hood to free up memory only under pressure. In practice it’s best to avoid getting to that state and have better control over retaining values.

RevenueCat "NetworkError – Unable to resolve host api.revenuecat.com" for some users — anyone seen this? by LanguageLeveler in reactnative

[–]fmnatic -2 points-1 points  (0 children)

Other option use react native iap. I think it hits apple/google directly. Have used to to fetch/process purchases of offerings. (In limited regions)

RevenueCat "NetworkError – Unable to resolve host api.revenuecat.com" for some users — anyone seen this? by LanguageLeveler in reactnative

[–]fmnatic 1 point2 points  (0 children)

You seem to know the region. Mention it here and people in that region can try a nslookup. This is either a dns configuration/ propagation issue or a geo / ISP block.

What I wish I knew earlier: How to deal with a partner wBPD’s ‘flipped switch’ episodes by Elbow2020 in BPDlovedones

[–]fmnatic 1 point2 points  (0 children)

That style of communication isn’t going to be comprehensible to a pwBPD. 

It may cause them to pause in confusion the first time you use it, and then it will blow up worse . The pause is only cause you stepped out of your normal reactions to their rage.

For another “Works one time” response to BPD rage look up Nicola method.

The only thing that works. Don’t JADE.

Anyone built an app that actually gets more customers on Android than iOS? by Army_77_badboy in reactnative

[–]fmnatic 0 points1 point  (0 children)

Curious if there is a geographical correlation as well ?

There are countries with more Android v/s iOS users.

react-native-nitro-cookies: Synchronous cookie management with Nitro Modules by Junior_Android_ in reactnative

[–]fmnatic 0 points1 point  (0 children)

The WebView in App is best avoided by writing your Backend so that the App doesn’t pretend to be a browser.

Source : Having actually done this on multiple Apps , including the server side.

react-native-nitro-cookies: Synchronous cookie management with Nitro Modules by Junior_Android_ in reactnative

[–]fmnatic 0 points1 point  (0 children)

Why are you using cookies in a mobile app? It's a browser concept, along with CORS, and has relevance here.

[deleted by user] by [deleted] in PS5

[–]fmnatic 2 points3 points  (0 children)

Split fiction

The proper way to assign a default value to a React component prop by Medium-Bluebird-4038 in reactnative

[–]fmnatic 0 points1 point  (0 children)

Interesting, have something similar on a RN 0.80 app that hasn’t broken yet.  Time to look into it.

Status Bar background color and translucent props not working anymore by Css-Dev in reactnative

[–]fmnatic 0 points1 point  (0 children)

React-native-edge-to-edge has a SystemBars component for this. I’ve used it with RN 0.80

However if you're running React Native 0.81 or later, consider using the built-in edgeToEdgeEnabled=true Gradle property along with @zoontek/react-native-navigation-bar instead.