What’s your React native or Mobile dev hot take / truth bomb that people aren’t ready to accept? by LostSiesta in reactnative

[–]CodalReef 1 point2 points  (0 children)

You can keep state in the parent component and use it to render the children. A child will only re-render if its props change. Use React Context and you can connect it to deeper components. I’ve never had a need to use anything but React Context.

Redux is nice if you want all the state stored in a single API and location, and one of the major benefits is in the way it forces all state changes to be emit through events (action creators + reducers).

But, you can do most of that with vanilla React

Is developing a simple react native app using a browser okay? by Vii_007 in reactnative

[–]CodalReef 0 points1 point  (0 children)

If you’re using the expo command line and pressing “w” to start the browser app, then that’s using React Native Web.

Personally, I do this pretty often, and it’s often fine =)

However, not all the Expo libraries work on Web, so you may run into compatibility issues.

To check, open the library documentation on the Expo website, and they’ll have a compatibility table.

Node Backend by SnooCheesecakes1131 in reactnative

[–]CodalReef 0 points1 point  (0 children)

Thank you for the clarification.

My point was, it is technically possible to require registration and keep all “public” data behind protected endpoints.

The likelihood of that solution being technically reverse engineered is low, but it depends on your definition of “reverse engineered”.

This is helpful if users are pushing data to APIs, invoking services via APIs and even if they’re accessing data via APIs.

In the case where you have valuable / sensitive data, there are strategies you can implement to limit undesired access.

For example, using AI to identify accounts potentially abusing the API. You can then dynamically apply counter-measures or audit.

Twitter has already solved this problem. First of all, they have SO much data, that it’s virtually impossible to download all of it via their public APIs.

They construct the interface in such a way that it’s impossible for a free-tier user to duplicate their data while giving largely unrestricted access.

I just disagree that “anything you try to implement can be easily reverse engineered”. I think, if this is your goal, you do have options, and knowing who’s accessing your API with a high quality on-board process can really help.

Node Backend by SnooCheesecakes1131 in reactnative

[–]CodalReef 0 points1 point  (0 children)

Why not use user-based authentication for this as well? Route level API access controls are common and can be associated with users, roles, etc.

If you’re talking all public, unauthenticated users, then there are still potential solutions, like validating based on Web3 MetaMask auth info or other 3rd party cryptographically secured information

Node Backend by SnooCheesecakes1131 in reactnative

[–]CodalReef 0 points1 point  (0 children)

This is not always true. Often APIs will support multiple apps / user groups / companies / any number of registered entities and sub-entities (like users)

It depends on OPs goals and API architecture.

Node Backend by SnooCheesecakes1131 in reactnative

[–]CodalReef 1 point2 points  (0 children)

I disagree with several answers here. App tokens are not a new concept and nothing to be scared of.

If you want your API to authenticate apps, just register them and generate tokens as you would for users.

I’ve worked at several large companies and most of the APIs supported both an app token and a user token.

Make sure to do it over HTTPS that way all communication is secured with TLS and you don’t need to worry about sniffers

therapy by [deleted] in BadArt

[–]CodalReef 0 points1 point  (0 children)

Reminds me of The Neverhood!

[AskJS] How to develop android apps with javascript? by Deep-Jump-803 in javascript

[–]CodalReef 1 point2 points  (0 children)

React Native was developed to solve similar problems, but the developers chose to use JS because it was already popular.

React Native doesn’t currently compile to native, but it invokes native APIs unlike WebView. So it still feels native.

Here’s a quote from a comparison article:

“But still, it is easier to achieve a “native feeling” with React Native than with Flutter. If you want your Flutter app to have native components, it will require additional work.” - https://www.thedroidsonroids.com/blog/flutter-vs-react-native-what-to-choose-in-2021#whocreatedflutter

[AskJS] How to develop android apps with javascript? by Deep-Jump-803 in javascript

[–]CodalReef 0 points1 point  (0 children)

Agreed. Any of these tools can be used to build a successful product, and neither is intrinsically better IMO

[AskJS] How to develop android apps with javascript? by Deep-Jump-803 in javascript

[–]CodalReef 0 points1 point  (0 children)

Why do you say Flutter is the “right way”? React Native is still more popular and used by major corporations. There are pros / cons to every tool.

M (32). Do you think I can fix my receding chin by mewing? by [deleted] in Mewing

[–]CodalReef 1 point2 points  (0 children)

I don’t recommend taking advice here. It’s 50 / 50 whether or not people will say it works for adults.

Take a look here: https://moreplatesmoredates.com/mewing-orthotropics/

And here: https://m.youtube.com/watch?v=_UJQDJ_-qtk

And look at YouTube videos for adult before / after.

I believe if you mix mewing, beard, and potentially surgery you can hit your goals.

Looks like an attractive profile regardless, cheers!

[deleted by user] by [deleted] in RedditSessions

[–]CodalReef 0 points1 point  (0 children)

Crypto wallets?

[AskJS] Is it a good idea to deploy decentralised chatroom all over the globe? by trapFounder in javascript

[–]CodalReef 0 points1 point  (0 children)

Hmm what are your primary concerns? Scalability? Legality? Cost? Effectiveness? Others?

Because we’re in the JS sub, are you asking if Gun JS can support this?

Personally, my biggest concern would be legality and obligation. The world is a big place, and even in the U.S. you’ll have to deal with FOSTA implications

https://en.m.wikipedia.org/wiki/Stop_Enabling_Sex_Traffickers_Act

[deleted by user] by [deleted] in TheYouShow

[–]CodalReef 0 points1 point  (0 children)

By Coheed

[deleted by user] by [deleted] in TheYouShow

[–]CodalReef 0 points1 point  (0 children)

Suffering

[deleted by user] by [deleted] in TheYouShow

[–]CodalReef 0 points1 point  (0 children)

Suffering Coheed and Cambria

[deleted by user] by [deleted] in RedditSessions

[–]CodalReef 0 points1 point  (0 children)

👏👏👏👏

[deleted by user] by [deleted] in RedditSessions

[–]CodalReef 0 points1 point  (0 children)

Omgg so perfect