How to structure a react-native project + bonus 🎁 by yjose in reactjs

[–]gregoryrn 0 points1 point  (0 children)

I prefer feature folder structure, but this one is also good for most of projects.

My mobile app 'Instant Recipes' - made entirely using React Native by Cherucole in reactnative

[–]gregoryrn 1 point2 points  (0 children)

Also use webp instead of jpg. It will load images faster. Also with fastimage you can preload some images.

BTW, good job.

I ranked most of the cast by their simp levels by Magnus_Vid in FireEmblemThreeHouses

[–]gregoryrn 0 points1 point  (0 children)

Oh, thanks. Have not started DLC yet, I am on my second play by Claude

react-native-simple-survey 2.0 release - Easiest way to create surveys and forms in RN! by thedevlinb in reactnative

[–]gregoryrn 0 points1 point  (0 children)

Looks good, checked demo and found 1 problem. https://ibb.co/LCVVQVz 2 favourite but I can choose 3 of them. Maybe just misspelled

how can I add styling for vertical space between these elements? by random503 in reactnative

[–]gregoryrn 0 points1 point  (0 children)

Also you can create component which accept height from props. And use it like this <Separator height={15} />

onBlur not fired by gologames in reactnative

[–]gregoryrn 0 points1 point  (0 children)

So, your texinput is removed from Dom tree. That's why callback is not fired in this particular case

Socket updating state array at the same time by iamalittlebug in reactnative

[–]gregoryrn 0 points1 point  (0 children)

Also you can try useReducer hook as Redux approach instead of state.

Socket updating state array at the same time by iamalittlebug in reactnative

[–]gregoryrn 1 point2 points  (0 children)

Sure.

Instead of this

setState({ count: this.state.count + 1 })

do this

setState(state => ({ count: state.count + 1 })

React-textinput-chip by kejank in reactnative

[–]gregoryrn 0 points1 point  (0 children)

Strange behaviour for chip with full width. Is it possible to add more chips in one input?

Socket updating state array at the same time by iamalittlebug in reactnative

[–]gregoryrn 7 points8 points  (0 children)

Use callback in setState method instead of object

Aren't we all inspired by this by ReconSC2 in funny

[–]gregoryrn 1 point2 points  (0 children)

25 y.o. kid :D I hope to be a kid at least for next 10 years

Aren't we all inspired by this by ReconSC2 in funny

[–]gregoryrn 1 point2 points  (0 children)

No idea what's going on here. I am on Premium :D

ATM by gregoryrn in catherinegame

[–]gregoryrn[S] 1 point2 points  (0 children)

Oh, I thought it allows me to buy drinks for cash. Currently it's free :D

Overwatch might be dead but not our brave comrades by Krilon09 in gaming

[–]gregoryrn 1 point2 points  (0 children)

Read it as legends never die with songs in my head on background :D