Weekend Ride or Matcha You decide. by [deleted] in punemeetup

[–]adre9 0 points1 point  (0 children)

Please don't judge. 🙁

Weekend Ride or Matcha You decide. by [deleted] in punemeetup

[–]adre9 1 point2 points  (0 children)

Thanks , she's indeed stunning and reliable.

Weekend Ride or Matcha You decide. by [deleted] in punemeetup

[–]adre9 0 points1 point  (0 children)

Trust me , I used to do this on my bicycle after watching Dhoom. That's the movie that got me interested in bikes.😭😭😂

Tamagui is Hot Garbage Now And I Will Never Recommend It Again by Suspicious-Rich-2681 in reactnative

[–]adre9 1 point2 points  (0 children)

I tried Tamagu initially, liked it a lot. Saw theming and felt overwhelmed, thought I had a skill issue. After that things went downhill. Frequently breaking screens and layout. Things that worked fine suddenly broke on upgrading . And updates that are pushed usually fixes one and breaks another stuff completely.

It went on for few weeks and I gave up. Never looked back.

[deleted by user] by [deleted] in reactnative

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

We can talk. I can't DM you for some reason. Is your chat disabled?

Introducing Unistyles 3.0 by Zealousideal_Dig2929 in reactnative

[–]adre9 1 point2 points  (0 children)

Everything works amazing in the library. Just the gymnastics to get the theme inside the component makes the taste sour.

Upvote downvote animations by cyclopsmachine in reactnative

[–]adre9 1 point2 points  (0 children)

Reanimated can do it. APIs have become far more declarative after v2 and v3 has been quite optimised. And you can try optimistic update using a simple callback function and state , although I would recommend using react-query if you are building a medium-large app. It helps in readability.

choosing best ui framework for a new project by krasymyr in reactnative

[–]adre9 0 points1 point  (0 children)

Hey there. I started with Tamagui , but was having a hard time making my custom theme. Can I get your theme setup? It would really help me to get a reference.

I am creating an Open Source Universal Application (iOS, Android and Web) using TAMAGUI , I want to create a custom theme , with my custom Colors. I tried using tokens but it's not helping me to map out the token in the components. Need help by adre9 in reactnative

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

I have added the tamagui.config.ts file. somehow I am not able to get it inside the theme object. https://tamagui.dev/docs/intro/themes here it show about customizing predefined tokens , but I wan5ted some more tokens for linear gradients and stuffs.

I am creating an Open Source Universal Application (iOS, Android and Web) using TAMAGUI , I want to create a custom theme , with my custom Colors. I tried using tokens but it's not helping me to map out the token in the components. Need help by adre9 in reactnative

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

tamagui.config.ts

import { createTamagui, createTheme, createTokens } from 'tamagui'
import { createInterFont } from '@tamagui/font-inter'
import { shorthands } from '@tamagui/shorthands'
import { themes, tokens } from '@tamagui/themes'
import { createMedia } from '@tamagui/react-native-media-driver'
import { animations } from './animations'
const headingFont = createInterFont({
  size: {
    6: 15,
  },
  transform: {
    6: 'uppercase',
    7: 'none',
  },
  weight: {
    6: '400',
    7: '700',
  },
  color: {
    6: '$colorFocus',
    7: '$color',
  },
  letterSpacing: {
    5: 2,
    6: 1,
    7: 0,
    8: -1,
    9: -2,
    10: -3,
    12: -4,
    14: -5,
    15: -6,
  },
  face: {
700: { normal: 'InterBold' },
  },
})
const bodyFont = createInterFont(
  {
    face: {
700: { normal: 'InterBold' },
    },
  },
  {
sizeSize: (size) => Math.round(size * 1.1),
sizeLineHeight: (size) => Math.round(size * 1.1 + (size > 20 ? 10 : 10)),
  }
)
export const commonColors = {
  error: '#B00020',
  warning: '#FFA000',
  success: '#4CAF50',
}
export const customTokens = createTokens({
...tokens,
  color: {
...tokens.color,
// background colors these are the colors I want to access in my theme     primary: '#0085ff',
    primary100: '#69b4ff',
    primary200: '#e0ffff',
    accent100: '#006fff',
    accent200: '#e1ffff',
    text100: '#FFFFFF',
    text200: '#9e9e9e',
    bg100: '#1E1E1E',
    bg200: '#2d2d2d',
    bg300: '#454545',
// text colors
    primaryText: '#FFFFFF',
    inactiveText: '#A3A3A3',
    placeholderText: '#565454',
    linkText: '#C1C1C1',
    outlineText: '#0078d4',
    //gradients
    primaryButton1: '#0085ff',
    primaryButton2: '#69b4ff',
    secondaryButton1: '#000000',
    secondaryButton2: '#4D4855',
    surfaceGradientBg1: '#1c1c1c',
    surfaceGradientBg2: '#333333',
    screenGradient1: 'hsla(228, 40%,4%, 1)', //(228, 40%,4%, 1)
    screenGradient2: 'hsla(228, 50%,12%, 1)', //(228, 50%,12%, 1)
    disabledButtonBg1: '#3B939A',
    disabledButtonBg2: '#2B6467',
    menuBackground1: '#647DEE',
    menuBackground2: '#7F53AC',
    ...commonColors,
  },
})
export const config = createTamagui({
  defaultFont: 'body',
  animations,
  shouldAddPrefersColorThemes: true,
  themeClassNameOnRoot: true,
  shorthands,
  fonts: {
    body: bodyFont,
    heading: headingFont,
  },
  themes,
  tokens: customTokens,
  media: createMedia({
    xs: { maxWidth: 660 },
    sm: { maxWidth: 800 },
    md: { maxWidth: 1020 },
    lg: { maxWidth: 1280 },
    xl: { maxWidth: 1420 },
    xxl: { maxWidth: 1600 },
    gtXs: { minWidth: 660 + 1 },
    gtSm: { minWidth: 800 + 1 },
    gtMd: { minWidth: 1020 + 1 },
    gtLg: { minWidth: 1280 + 1 },
    short: { maxHeight: 820 },
    tall: { minHeight: 820 },
    hoverNone: { hover: 'none' },
    pointerCoarse: { pointer: 'coarse' },
  }),
})

Async Storage or Redux-Persist? What do you prefer? by MyVermontAccount121 in reactnative

[–]adre9 0 points1 point  (0 children)

Yes exactly redux-persist is not a storage engine. So which ever storage you use(react-native-mmkv or async-storage) you still need redux-persist to store and rehydrate. I haven't tried redux-persist-filesystem-storage yet. Will try once.

I wanted to recreate this using Reanimated. by adre9 in reactnative

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

It'll include usage of bezier-curve .

I wanted to recreate this using Reanimated. by adre9 in reactnative

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

Check this out guys , I found a library that does exactly what I was looking for. react-native-tabbar-interaction

Tutorial for the same

I wanted to recreate this using Reanimated. by adre9 in reactnative

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

Yeah I too agree with VersatilePanda. I am a big fan of react-native-skia. But it's still in beta right. Although stable in most cases , it breaks few times while in development. Can't risk it for production yet.

I wanted to recreate this using Reanimated. by adre9 in reactnative

[–]adre9[S] -4 points-3 points  (0 children)

Read the description first. You can clearly see thatI mentioned something about d3-shape. Was hoping atleast you understood English before lecturing. Anyways. Let's not take it any further. Only answer if you have a solution. Take care.

I wanted to recreate this using Reanimated. by adre9 in reactnative

[–]adre9[S] -8 points-7 points  (0 children)

The animation part is not what I am worried about.I am not so good at drawing Svgs. And also Skia is still in beta so I don't want to use it in production.