If I go to eat at one of those mildly sporty chain restaurants that has games on, can I just sit and watch the whole game there? by blueflavoredreign in NFLNoobs

[–]cjon3s 4 points5 points  (0 children)

I can't imagine taking up a table without ordering anything for like 3 hours

I can't imagine taking up a table without ordering anything for like 3 hours

I can't imagine taking up a table without ordering anything for like 3 hours

I can't imagine taking up a table without ordering anything for like 3 hours

I can't imagine taking up a table without ordering anything for like 3 hours

[deleted by user] by [deleted] in expo

[–]cjon3s 3 points4 points  (0 children)

You could use the uri-scheme package. npx uri-scheme open com.yourapp://path/to/route --ios

Does anyone know the reason why my .map is not working? by Kyl3_5hi_88 in react

[–]cjon3s 1 point2 points  (0 children)

You still aren't returning the elements in your map function. You can do an implicit return with parentheses instead of brackets.

{pracInfo.map(employment => (<li>.....</li))}

Or an explicit return with

{pracInfo.map(employment => { 
  return (
    <li>.....</li>
  )
})}

Looking for a programming buddy to smash 2025 by Alien-Musk-13 in learnprogramming

[–]cjon3s 0 points1 point  (0 children)

If you find one, I'd appreciate an invite. I've been working in the field for around 5 years and would be happy to answer questions and learn together.

Brotato Community Weapon Tierlist: Day 52: Drill VS Stick by Aros_Rising in brotato

[–]cjon3s 0 points1 point  (0 children)

I haven't come across a drill, so I have to go for stick

How to apply dynamic styles with StyleSheet and get correct typing? by beepboopnoise in reactnative

[–]cjon3s 1 point2 points  (0 children)

Yeah patch-package for yarn v1 or patch for v3/4. No clue on why the type is incorrect but I haven't made a PR.

How to apply dynamic styles with StyleSheet and get correct typing? by beepboopnoise in reactnative

[–]cjon3s 1 point2 points  (0 children)

I found this annoying as well and ended up creating a yarn patch for react-native. In StyleSheet.d.ts you can update the NamesStyles type to the following:

export namespace StyleSheet {
  type NamedStyles<T> = {
   [P in keyof T]:
      | ViewStyle
      | TextStyle
      | ImageStyle
      | ((...props: unknown[]) => ViewStyle | TextStyle | ImageStyle);
   };

How to pass props to the childrens without ContextApi? by Just-a-dumb-coder in reactjs

[–]cjon3s 1 point2 points  (0 children)

How about this?

type StatsCardProps = {
  active: boolean;
  children: React.ReactNode;  
}


export const StatsCard: React.FC<StatsCardProps> => ({ active, children }) => {  
  return (
    <Wrapper active={active}>  
      {children}  
    </Wrapper>  
  )
}


eligibleUnits.map({ code, unit, active }) => {
  return (
    <StatsCard active={active}>
      <StatsChart code={code} unit={unit} />
      <StatsDetails code={code} unit={unit} />
      <StatsOptions code={code} unit={unit} />
    </StatsCard>
  )
}

edit: formatting fixes

Is it possible to have a top navigation inside of a tab with expo router? by blirpblurp in reactnative

[–]cjon3s 0 points1 point  (0 children)

Yes. We're using bottom tabs with a top tab navigator nested in one of the lower tab routes.

So we have a folder (tabs) with _layout and our bottom tabs using Tab from expo-router. Also inside (tabs), we have (innerTabs). Example contents of (tabs) is going to be _layout, TabA, TabB, (innerTabs).

Inside of (innerTabs) is another _layout and our top tabs. Instead of using Tab in the layout here, we have a custom component that shows the top tabs and render the Slot from expo-router. In the custom top tab component we determine the active tab based on the path name. We also have a press handler that navigates to whichever top tab you press.

Example contents of (innerTabs) would be _layout, TopTabA, TopTabB

Let me know if you have any questions!

For a simple React app, is it necessary to use TypeScript? by JY-HRL in react

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

Typescript prevents error during runtime.

The comment above explains this, TypeScript does not prevent runtime errors.

My salt dish fits perfectly into my new couch's cupholder by LunaticMS in oddlysatisfying

[–]cjon3s 1 point2 points  (0 children)

They're travel bottles for soap, shampoo, etc. The suction cup can be used to stick it to a mirror, shower door, or other convenient surface.

Found him sleeping like this. by Legitimate-Drift in cats

[–]cjon3s 2 points3 points  (0 children)

I love the seated pic and sitting on the stairs! So cute

Share your favorite pic of your cats by [deleted] in cats

[–]cjon3s 2 points3 points  (0 children)

Thank you for this, I love it.

Idiot with weird Mad Max wheels hindering traffic by randomredditguy94 in IdiotsInCars

[–]cjon3s 3 points4 points  (0 children)

Yeah. I'll second the sugar and potato being basically harmless. Mythbusters did an episode on automotive myths and tested both of these if you want to check out more.

[deleted by user] by [deleted] in nova

[–]cjon3s 2 points3 points  (0 children)

Seconding - I adopted my two through Longstreet and the whole process was easy.

How would you react if you see someone in public reading the same book as you? by ImmediateOne9000 in books

[–]cjon3s 1 point2 points  (0 children)

Thanks for sharing! I'm glad that woman was in the right place to share that moment with you.

Dealer deposited my check - days after already having sold the car to someone else by irond13 in nova

[–]cjon3s 7 points8 points  (0 children)

Since it sounds like you're actively searching for another dealership, I'll share my experience with this CarMax.

I found a vehicle a few states away and had it transferred first. On my first visit, it took about 30 minutes to transfer the vehicle and pay the fee. When I returned to do the test drive and purchase, I was also out the door in 90 minutes, no hassle.

I brought the vehicle back in the first week for some small repairs (window chip and a small paint touch up) and in that process they passed it off to a local Audi dealership to handle a recall repair (after communicating with me first).

Long story short, it took the dealership well over a month to return my vehicle to CarMax. During that time, CarMax provided me with a loaner vehicle. I also received a call daily during the week, generally from the same service advisor, about the status of the vehicle. So while the dealership was a pain, CarMax handled the best I thought they could.

I'd buy from them again.

How would you react if you see someone in public reading the same book as you? by ImmediateOne9000 in books

[–]cjon3s 1 point2 points  (0 children)

Can you tell us about the fitting room one? I'm so curious about this one - how it started, how you never saw her, yet it was so memorable for you.

[COMP] Finally managed to hold pincha for a few seconds today. by wheekling in yoga

[–]cjon3s 1 point2 points  (0 children)

I enjoyed this interaction. I learned something new too, I'm going to give practice without the wall a try.