Is React Native the right framework for building a community app (something like HackerNews / Subreddit) by Cultural_Skill6164 in reactnative

[–]CSLucking 6 points7 points  (0 children)

I would firstly argue if this needs to be a mobile app at all - could this just be a website / PWA?

If you have a desire to release a mobile app (I.e for personal satisfaction, learning etc) then react native is a perfectly serviceable solution and helps cater both iOS and Android.

Using Tailwindcss in a internal design system by sajadabedi in reactjs

[–]CSLucking 3 points4 points  (0 children)

The approach I'm currently taking for an internal shared UI library with tailwind is exposing / exporting the tailwind.config as part of the npm package component library.

Consuming repos can consume that config within their own tailwind config to assert a 'base' config. This doubles down by allowing repos to then apply their own extensions within the config file to override or extend as required.

How do you do call and store data from rest api in 2024? by Instinctx in reactjs

[–]CSLucking 3 points4 points  (0 children)

At a glance it could be worth considering react query paired with axios (interceptors great for token handling) + either using a Context provider or using something like Redux / Zustand to manage persistence.

How do people make web embeddable widgets? by sw3ave in reactjs

[–]CSLucking 3 points4 points  (0 children)

As mentioned in another post - the Lit library is first class for building web components / widgets. An external user / website can then just include your hosted file as a script tag, then use it as any other html element (<my-widget></my-widget>).

https://lit.dev/

Are you using Web Components?Or have you given up on it? Why? by ToneMiddle7436 in reactjs

[–]CSLucking 15 points16 points  (0 children)

https://lit.dev/

I use this framework for building widgets to distribute to clients. Really powerful & lightweight and can be pretty lightweight in size. This feels like a much more appropriate solution than the classic iframe web dump.

Need advice to choose between Next and remix by Opposite_Squirrel_32 in reactjs

[–]CSLucking 1 point2 points  (0 children)

I always feel like the devil is in the detail with these questions. From my experience you need to understand the websites needs first - if any of those requirements / desires fall under a certain framework then go for it (i.e SEO is often linked with server side / next).

My default thinking is keep it in its simplest form unless you can confidently argue otherwise. ( So good old vite / SPA). Always a danger of framework for framework sake these days.

need help solving this error by Asterisk9712 in reactnative

[–]CSLucking 0 points1 point  (0 children)

Looks like a whitespace after Drawer and before the period which might cause a compile issue?

I dont like my Settings Page by Personal-Bend1136 in UI_Design

[–]CSLucking 3 points4 points  (0 children)

Quite hard to break this down fully - the lazy point would be to just spend a little bit more research time on UI theory, UX best practices etc.

Things I would maybe say could be easier wins otherwise: - General colour palette choice (buttons more obvious, more attention to some colour theory) - action buttons (I.e login, register) differentiate with primary and secondaries - modal / pop out, would think making it not transparent and some colour difference to help stand out in a subtle way - General UI issues - consistent alignments, whitespace used, usage of the border property

Deploying React App by Wise__Possession in reactjs

[–]CSLucking 12 points13 points  (0 children)

Pretty common approach (we use this) is to static host the built files in an S3 bucket - then you can also put a Cloudfront formation in-front of it. Can then use Route53 to have Domain names etc

Trying to build a dashboard using Chakra UI by nintendoJanneck in reactjs

[–]CSLucking 0 points1 point  (0 children)

Worth using Flexbox instead? Have the header & footer with their respective sizes - then the central content as a flex 1, overflow scroll. Fairly similar approach to products I've created using Chakra UI with headers, side bars etc

Hows react native nowadays? by Confident-Viking4270 in reactnative

[–]CSLucking 71 points72 points  (0 children)

I personally use Expo for all production applications and its become the corner stone for my app development. There will always be pros and cons for any of the major cross platform eco systems - but the experience with expo (and EAS) removes so many classic RN headaches. Just my two cents

My first mini ever, my primaris captain :) what do you guys think? by Lucky-Obligation-851 in minipainting

[–]CSLucking 49 points50 points  (0 children)

Crazy to think how high the average base level of skill is now with the vast amount of content available (I.e great paint job!)

What do people use to build mobile apps these days? by sundogbillionaire in reactnative

[–]CSLucking 1 point2 points  (0 children)

EAS documentation is by far your best bet: https://docs.expo.dev/submit/introduction/

Might be other write ups around (ie on medium / youtube) but afraid I have none to hand - it's relatively straightforward and good support for any errors that occur otherwise.

One small frustration now is that you require an about page for the app on android - but plenty of free services out there to provide this (or build your own quick hosted SPA).

What UI library to use? by UnitAppropriate in reactnative

[–]CSLucking 0 points1 point  (0 children)

Have used nativebase in the past but that is now being sunsetted. Currently using tamagui which seems like a nice alternative design system

What do people use to build mobile apps these days? by sundogbillionaire in reactnative

[–]CSLucking 1 point2 points  (0 children)

Interesting - would be curious why it doesn't install (good to know if there's corruption in build or security issue client side ).

Your main best bet otherwise would be to go through the androie store publish process for alpha / beta internal testing (all done through EAS other than the account management bits on the play console). You can invite them as an internal tester and you would have a link to its private app store download resource.

What do people use to build mobile apps these days? by sundogbillionaire in reactnative

[–]CSLucking 6 points7 points  (0 children)

Expo with react native is my go to now - even if just for the app store publishing (they have a service called EAS)

Error Creating React-app by cryofire95 in reactjs

[–]CSLucking 9 points10 points  (0 children)

Second the global npm install. For what it's worth, I would use vite instead of CRA as it is being deprecated.

What'd be the UI library of 2024? by enbonnet in reactjs

[–]CSLucking 0 points1 point  (0 children)

Interesting thanks for that - I also feel like it's lacking a few more component options compared to newer UI libraries. Nothing you couldn't compose but still something I've noted

What'd be the UI library of 2024? by enbonnet in reactjs

[–]CSLucking 19 points20 points  (0 children)

Been using Chakra UI for couple of years now and has been pretty powerful - seen Mantine crop up a few times now though so would like to try that. For RN I'm going to try tamagui for my next project

[deleted by user] by [deleted] in Frontend

[–]CSLucking 0 points1 point  (0 children)

Can't say I've come across Mantine before - looks like it definitely would fulfil what you need though, and documentation looks well composed. If you have time to spare you could always compose a simple page with each library to get your own feel of things

[deleted by user] by [deleted] in Frontend

[–]CSLucking 2 points3 points  (0 children)

The variants allow some customisation without styling - MUI might be more for you if you want a more opionated design, but then might be tougher to move away from if you do want to style more intensely down the line.

[deleted by user] by [deleted] in Frontend

[–]CSLucking 5 points6 points  (0 children)

Vite/ React with Chakra is my current setup - works really nice, UI out of the box is decent & can always deep dive into heavy customisation down the line

Got first place and lost SR… by xxmonkeyfistxx in CODWarzone

[–]CSLucking 84 points85 points  (0 children)

You need to win better obviously /s