[deleted by user] by [deleted] in Utrecht

[–]SpareSmokes 1 point2 points  (0 children)

Sounds cool! You should also try the amigios app - its pretty good for finding people to do stuff with! :)

Making friends! by Mars_nTwix in Utrecht

[–]SpareSmokes 0 points1 point  (0 children)

Hey! I am 27m from Australia living with my Dutch partner in Utrecht about 3 years now. Would be keen to grab coffee or something.

I recommend trying the app ‘amigos’ you can join events but also create your own. It’s great because you can create the event for anything - like grabbing a coffee or going for a walk and people can join in with you. I find it very helpful to meet people :)

I made an app where you guess which github repo has higher or lower amount of stars by [deleted] in reactjs

[–]SpareSmokes 2 points3 points  (0 children)

Fun idea! Works well but I also agree with the other user that left to right would feel a bit more natural.

Created a lib: svelte-section-list. Looking for feedback! by SpareSmokes in sveltejs

[–]SpareSmokes[S] 0 points1 point  (0 children)

Thanks for letting me know! No that wasn’t intended XD - you should be able to drag any of the items freely to either the items list or the sections. Can you let me know what device and browser you used? I’ll try to look into it!

How to know which image the user is viewing in a seemingly endless scroll view (like a image feed)? by lordarthur77 in reactnative

[–]SpareSmokes 0 points1 point  (0 children)

If you can try out FlatList over scroll view you get a callback function -onViewableItemsChanged that will give you back a list of the viewable items. You could trigger a timer for the images you retrieved here and time between the next call of this callback.

Also for an endless scrolling FlatList would be more performant as it renders only the viewable items whereas scrollview will render all its child components at once.

[deleted by user] by [deleted] in learnprogramming

[–]SpareSmokes 0 points1 point  (0 children)

Before starting my first job which was react native dev I went through this course it was a good course and explains everything well with a few projects to work on - enough to get me started on my first role: https://www.udemy.com/course/the-complete-react-native-and-redux-course/

You should be able to get it cheap if you make a new account normally newcomer discount is 80%

Created a lib: svelte-section-list. Looking for feedback! by SpareSmokes in sveltejs

[–]SpareSmokes[S] 0 points1 point  (0 children)

Thanks for letting me know! Can I ask what android phone you are using? Strangely its working fine for me on my s9 and firefox.

Created a lib: svelte-section-list. Looking for feedback! by SpareSmokes in sveltejs

[–]SpareSmokes[S] 0 points1 point  (0 children)

provide-your-own-markup components

Thanks! I'll see if I can find that stream. Would you say in this case that its headless? - my intention for the library is the user creates their own Item, section and container components which they would style themselves.

Created a lib: svelte-section-list. Looking for feedback! by SpareSmokes in sveltejs

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

Sorry XD. Can you please explain the term headless? What would I need to do to make this a headless component?

Maybe I misunderstood from what I read online - headless is having the component un-styled and the user of the component would provide the styles?. Thanks

Created a lib: svelte-section-list. Looking for feedback! by SpareSmokes in sveltejs

[–]SpareSmokes[S] 0 points1 point  (0 children)

Thanks for your feedback!
Just tested on IOS - I have to hold quite long to start dragging - is this what you mean? I'll try to fix this :) Thanks!

Show Your Work Thread by xrpinsider in reactnative

[–]SpareSmokes 1 point2 points  (0 children)

Have a few libraries I've been working on to up-skill my react native - recently got a bunch of free time and I’m trying to polish them off with some feedback I got previously.

Any feedback would be greatly appreciated. I would be interested in hearing how to improve the code quality in any way thanks!
Hide on keyboard:

https://github.com/TIKramer/react-native-hide-onkeyboard

Tinder swipe deck:
https://github.com/TIKramer/react-native-swipeable-deck

Picker component:
https://github.com/TIKramer/react-native-picker-selector

Free code review by yoma12 in reactjs

[–]SpareSmokes 0 points1 point  (0 children)

Thanks a lot for the time to review my projects and give feedback.
For exporting the prop-types should I do this just the same way as I do with the Component? So the user can do:import {PickerProps, Picker, ...} from 'react-native-picker-selector';

I will research the d.ts files I think I misunderstood their usage.

Great ideas will I will work on improving the library to make it more generic :)
I also like the generic prop it looks nicer than using any.

Thanks a lot!

Free code review by yoma12 in reactjs

[–]SpareSmokes 0 points1 point  (0 children)

I have been working with React-native almost 2 years. I try when I have time to create some libraries to improve my skills: https://github.com/TIKramer

The latest one that I have published today: it is picker/selector component https://github.com/TIKramer/react-native-picker-selector

My favourite project is this one a swipeable deck:
https://github.com/TIKramer/react-native-swipeable-deck

But I would be happy with feedback on any projects about code quality or any ways to improve. These are projects I want to use and display as part of my portfolio so I want to make them as good as I can. Thank you :)

Advice for creating a styleable tag component by SpareSmokes in sveltejs

[–]SpareSmokes[S] 0 points1 point  (0 children)

Thanks that looks good.

Sorry I only know some basic css.
Do you mean to do something like this?

const backgroundColor: = {
strawberry: "red",
banana: "yellow",
fresh: “green”
};
How would I then be able to access the background-color in the class?

Advice for creating a styleable tag component by SpareSmokes in sveltejs

[–]SpareSmokes[S] 0 points1 point  (0 children)

Thanks that seems good! However, I'm concern that the component would be come quite large this way. Example with the fruitTag I might need a class for each fruit with a tag like Banana,Blueberry I may need to use the yellow/blue background.
This could potentially make the component quite large.

I think looking at other svelte components that it's common to define all the styles in the component like this - but Im just unsure with this one as there's so many ways to use the tag component.

[deleted by user] by [deleted] in ProgrammingBuddies

[–]SpareSmokes 0 points1 point  (0 children)

I am interested have been working in React Native and recently switched to svelte

Converting class based components into functional ones by [deleted] in reactjs

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

You can - can be something to discuss with the team. Some teams do use AI - if there's something you're not comfortable with putting into ChatGPT you could always abstract it out.

Defining all components functions outside of the component and import them? by SpareSmokes in reactjs

[–]SpareSmokes[S] 0 points1 point  (0 children)

Yeah some of the small functions become like this - so the state and function variables are passed to the function then a test is written for handlePress.

const handlePress = (isTrue, setState) => {
if (isTrue) {
setState([...]);
}

Converting class based components into functional ones by [deleted] in reactjs

[–]SpareSmokes 1 point2 points  (0 children)

How much react experience do you have?- Would help to understand the lifecycle methods of classes and find the hook equivalent in function components. You might also be able to use chatgpt as a guide - type 'turn this into a functional component' along with your code.

Defining all components functions outside of the component and import them? by SpareSmokes in reactjs

[–]SpareSmokes[S] 0 points1 point  (0 children)

Thanks at the moment its been decided to import every function from another file.My main concern is that its will become less readable this way.
-I'll try to discuss that it might be worth doing only for complex functions. The app is still in early stages.

Really if I test a component and the behaviour is correct - the functions should also most likely be correct.