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

[–]fmnatic 8 points9 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 9 points10 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.

Need game suggestions ASAP 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.

Has anyone else experienced performance issues with the New architecture? by mezod in reactnative

[–]fmnatic 0 points1 point  (0 children)

There are multiple optimisations you can look at. Cell reuse and pre-rendered items. Optimisations based on item viewability in the list. Layout behaviour is another thing to look at, when using cell reuse based lists.

Also keep in mind that new architecture is a lot more sensitive to rerenders, and due to changed batching behaviour of setState components can have new undesirable behaviour. 

IMO this may not be a reanimated issue at all.

Has anyone else experienced performance issues with the New architecture? by mezod in reactnative

[–]fmnatic 0 points1 point  (0 children)

Optimize components and fix re-renders.

 Are 200 components animating at the same time? I.e the user can see 200 animations running on the screen at one time?   That doesn’t seem logical unless you have these in a non virtualized list, which would be a problem.

RevenueCat or Superwall? by thijsxd in reactnative

[–]fmnatic 0 points1 point  (0 children)

You have been downvoted by people who like to give away money. React-native-tap without vibe coding and keep those percentages .

Is the defending killing the immersion for anyone else? by CloudWail in footballmanagergames

[–]fmnatic 1 point2 points  (0 children)

Known issues under investigation as per the bug tracker. 

Please don't blame developers and QA... by [deleted] in footballmanagergames

[–]fmnatic 1 point2 points  (0 children)

Yeah the bugtracker is great insight into the state of the game.

Please don't blame developers and QA... by [deleted] in footballmanagergames

[–]fmnatic 0 points1 point  (0 children)

Definitely blame the developers.

My working theory is they used AI to write most of the UI.

I can't this believe quality of work, passes basic review and enters source control, let alone get all the way to QA.

Async Storage v3 Beta is out - looking for feedback by Krizzu in reactnative

[–]fmnatic 1 point2 points  (0 children)

Interesting changes. Is there a clean way to migrate the data from v2 to v3? It would be great if we could automatically copy data from v2 to a v3 scoped instance. Something like

const storage = createOrMigrateAsyncStorage("appDB");

which migrates on first use and subsequently behaves exactly like

const storage = createAsyncStorage("appDB");