Files
bsky-social-app/src/alf/README.md
T
Eric Bailey fe482177d4 Fix typo
2023-12-21 17:05:41 -06:00

629 B

Application Layout Framework (ALF)

import {View} from 'react-native'
import {atoms, useTheme, useBreakpoints, web} from '#/alf'
import {H3, Text} from '#/view/com/Typography'

function App() {
  const theme = useTheme()
  const breakpoints = useBreakpoints()

  return (
    <View style={[atoms.flex.row, atoms.padding.pa.xl, web({height: '100vh'})]}>
      <H3 style={[atoms.padding.pb.m, theme.atoms.color.primary]}>
        I'm the blue color
      </H3>

      {breakpoints.gtMobile && (
        <Text style={[theme.atoms.backgroundColor.l1]}>Only visible on tablet and above!</Text>
      )}
    </View>
  )
}