@tamagui/static

- onPress extraction - bug with props after spread not applying, make them deopt: - <YStack {...baseStyle} cursor="default" /> wont be right rn - make pressStyle override hoverStyle always - activeStyle may be desirable... - space - SmallButton good e

Usage no npm install needed!

<script type="module">
  import tamaguiStatic from 'https://cdn.skypack.dev/@tamagui/static';
</script>

README

  • onPress extraction
  • bug with props after spread not applying, make them deopt:
    • <YStack {...baseStyle} cursor="default" /> wont be right rn
  • make pressStyle override hoverStyle always
  • activeStyle may be desirable...
  • space
    • SmallButton good example case of constant
  • hoverStyle/pressStyle (spread + constant too - TagButton, DishView)
    • final step is hoverStyle={{ color: x, ...parent.hoverStyle, }}
  • pass in config to be able to create static extracted easily within web
    • OverlayLinkButton
  • SmallCircleButton case spreads
  • Circle, EmojiButton, LinearGradient, VoteButton
  • LinkButton - getting this to just extract styles would be big
    • just needs to tell compiler never to go to just
  • onPressIn/onPressOut etc can all be converted to inline functions still as divs (HomeAutocompleteBackground, SearchLocationButton, etc)
  • // TODO WHY SCALE NOT WORKING???
  • Link - can maybe fully extract, if we can just run the actual component and then return the results???
  • CSS variables for color!