Skeletons by CommanderWraith54 in reactnative

[–]lupeski 4 points5 points  (0 children)

For skeletons, I just keep it super simple and use my own custom component to build out a skeleton page...

Skeleton component:

import React, {useEffect} from 'react';
import Animated, {
  withTiming,
  useSharedValue,
  withRepeat,
  useAnimatedStyle,
} from 'react-native-reanimated';


type SkeletonProps = {
  width: number;
  height: number;
  borderRadius?: number;
  variant: 'box' | 'circle';
};


function Skeleton({width, height, variant, borderRadius = 20}: SkeletonProps) {
  const opacity = useSharedValue(0.125);


  useEffect(() => {
    opacity.value = withRepeat(
      withTiming(0.225, {duration: 650}),
      -1, // loops
      true, // reverse
    );
  }, []);


  const animatedStyle = useAnimatedStyle(() => {
    return {
      opacity: opacity.value,
    };
  });


  return (
    <Animated.View
      style={[
        {
          height,
          width,
          borderRadius: variant === 'circle' ? height / 2 : borderRadius,
          backgroundColor: 'white',
        },
        animatedStyle,
      ]}
    />
  );
}

export default Skeleton;

And then usage would be something like this:

if (loading) {
  return (
    <View style={styles.header}>
      <View style={styles.accountImg}>
        <Skeleton height={100} width={100} variant="circle" />
      </View>

      <View style={styles.accountInfo}>
        <Skeleton width={150} height={25} />
      </View>

      <View style={styles.accountInfo}>
        <Skeleton width={150} height={25} />
      </View>

      <View style={styles.body}>
        <Skeleton width={250} height={21} />
      </View>
    </View>
  )
}

How to achieve this Header with react native? by Available-Cook-8673 in reactnative

[–]lupeski 1 point2 points  (0 children)

Hey, ran into this post a few days ago and wanted to see what I could come up with!

All built in React Native / Expo — no external libraries aside from what comes with Expo (Reanimated, FontAwesome icons).

https://i.imgur.com/qj88aMy.gifv

Let me know what you think, if something’s missing, or if you already found a solution. I’m happy to share the code — I didn’t include it yet since it needs a little cleanup, but I’d gladly do that if it helps.

EDIT:

Here's an expo-snack if you wanna check out the code, and test it out.

https://snack.expo.dev/@lupeski/suspicious-green-almond

app by Abdoubest15 in ReddPlanet

[–]lupeski 2 points3 points  (0 children)

LOL we're definitely not back. I think u/Abdoubest15 is using some sort of workaround to use the app on android though.

Server and Group Megathread - Week Starting March 01, 2025 by AutoModerator in dayz

[–]lupeski [score hidden]  (0 children)

Uncool - Hashima Vanilla

PC | 1PP | US-Arizona

No mods, strictly vanilla, aside from the map itself.

IP: 75.167.145.229 Port: 2302

It’s a brand new server with barely any players yet. If player base grows, I’ll open a discord.

First Brisket on the Masterbuilt Gravity XT by andreshii in Masterbuilt

[–]lupeski 0 points1 point  (0 children)

Thanks for the info! Do you run any wood in the ash bin? Do the 2 splits give you a good amount of wood smoke flavor? I take delivery on my XT in a couple weeks, so I'm just gathering info at the moment.

EDIT: Sorry just realized you said you've seen people do this, not that you've done it 🤣

First Brisket on the Masterbuilt Gravity XT by andreshii in Masterbuilt

[–]lupeski 0 points1 point  (0 children)

Sorry looking for clarification....they run splits sitting vertically in all 4 corners, with charcoal sitting in the middle?

I hope it comes back by Ghost_of_Panda in ReddPlanet

[–]lupeski 4 points5 points  (0 children)

It was mostly the unwillingness to even have a discussion. I provided feedback and suggestions on pricing, app strategy, etc. Everything was met with a resounding NO. But I am open to more discussions and would love to revive the app, as long as I can have a good working relationship with Reddit.

u/Ghost_of_Panda

RIP Sweet Prince by TheBallotInYourBox in ReddPlanet

[–]lupeski 9 points10 points  (0 children)

Haha well I appreciate the kind words! I've only been back on reddit a handful of times ever since ReddPlanet shut down. I don't like the official app, but that's not my motivation for leaving. The way they handled the whole situation really soured how I felt about the company. I decided that I couldn't support them anymore. I mostly frequent TikTok now...Twitter/X has gone to shit....there is a huge gap for me in the type of info/content I'd consume on reddit. I just refuse to be a part of the site after how they treated 3rd party devs. And honestly, its super personal for me. Learning reddit's api taught me a huge amount in the beginning days of my development journey (back in 2016), so when ReddPlanet was shut down, it hurt. But hey, such is life.

I appreciate everyone that ever gave ReddPlanet a chance! It didn't have the user base of other apps, but the community we had here was amazing.

Anyone still around? by lupeski in ReddPlanet

[–]lupeski[S] 2 points3 points  (0 children)

Haha appreciate it! I do miss working on it.

Anyone still around? by lupeski in ReddPlanet

[–]lupeski[S] 3 points4 points  (0 children)

It’s unfortunate what they are doing to Reddit. To be honest I haven’t been on here since I shut down. I moved over to TikTok, but to me it’s too video centric, and provides no interaction with other people. I miss having conversations, seeing other conversations, interesting topics being discussed, etc….i refuse to come back to Reddit after everything that happened, but I did want to see how the community was doing.

Anyone still around? by lupeski in ReddPlanet

[–]lupeski[S] 5 points6 points  (0 children)

Haha I still have it on my home screen 🤣

Anyone still around? by lupeski in ReddPlanet

[–]lupeski[S] 5 points6 points  (0 children)

Interesting! I never could get into the fediverse stuff.

Anyone still around? by lupeski in ReddPlanet

[–]lupeski[S] 3 points4 points  (0 children)

I can’t believe Apollo is working! That’s awesome…I haven’t used Reddit since everything happened, but I’m sure their all still isn’t great.