0.16.0 • Published 1 year ago

tamagui-extras v0.16.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Tamagui + Solito + Next + Expo Kitchen-Sink

This repo is a mono-repo where tamagui-extras will be developed to add missing components and functionalities into the UI framework tamagui

🔦 About

This monorepo is a kitchen sink for an Expo + Next.js + Tamagui + Solito + Storybook app.

Many thanks to @FernandoTheRojo for the Solito starter monorepo which this was forked from. Check out his talk about using expo + next together at Next.js Conf 2021.

📦 tamagui-extras

Fully functional Demo to see all components in action.

Installation

# yarn install tamagui tamagui-extras

Follow the installation instructions of the tamagui framework.

Important NextJS config

Due to external dependenciestamagui-extrasutilizes some components which needs to be transpiled before you are able to start.

Currently following components must be transpiled (see example):

require('next-transpile-modules')(
    [
        'solito',
        'react-native-web',
        'expo-linking',
        'expo-constants',
        'expo-modules-core',
        'expo-document-picker',
        'expo-asset',
        'expo-av',
        '@my/config',
        'tamagui-extras'
    ]
)

Everytime you face the situation that an error message appears similar to SyntaxError: Cannot use import statement outside a module you might use an node module which is not transpiled for web.

Components

All components are prefixed with Lm to have an easy identifier which component belongs to this package.

Integration of react-hook-form

Form components have a trailing Rhf component name for an easy integration with react-hook-form library.

Wrap any form component with LmFormRhfProvider and add a LmSubmitButtonRhf to validate and receive all form values.

import {LmFormRhfProvider, LmInputRhf, LmSliderRhf, LmSubmitButtonRhf} from "tamagui-extras";
import {YStack} from 'tamagui'

function MyForm() {
    const [mutate, {isLoading}] = useMutation()
    return (
        <LmFormRhfProvider>
            <YStack space>
                <LmInputRhf name={'name'} label="Name"/>
                <LmSliderRhf name={'slider'} label="Slider"/>
                <LmSubmitButtonRhf
                    onSubmit={(formData) => {
                        mutate(formData)
                    }}
                    loading={isLoading}
                >Submit
                </LmSubmitButtonRhf>
            </YStack>
        </LmFormRhfProvider>
    )
}

Links

tamagui

0.11.0

1 year ago

0.11.1

1 year ago

0.13.0

1 year ago

0.13.1

1 year ago

0.15.0

1 year ago

0.13.2

1 year ago

0.13.3

1 year ago

0.13.4

1 year ago

0.13.5

1 year ago

0.9.0

1 year ago

0.7.2

1 year ago

0.9.2

1 year ago

0.9.1

1 year ago

0.7.3

1 year ago

0.7.0

1 year ago

0.9.7

1 year ago

0.0.63

1 year ago

0.12.10

1 year ago

0.0.64

1 year ago

0.12.11

1 year ago

0.0.65

1 year ago

0.9.4

1 year ago

0.0.66

1 year ago

0.9.3

1 year ago

0.0.61

1 year ago

0.12.7

1 year ago

0.12.8

1 year ago

0.12.9

1 year ago

0.10.1

1 year ago

0.0.59

1 year ago

0.12.0

1 year ago

0.12.1

1 year ago

0.14.0

1 year ago

0.12.2

1 year ago

0.14.1

1 year ago

0.12.12

1 year ago

0.16.0

1 year ago

0.12.13

1 year ago

0.12.4

1 year ago

0.12.5

1 year ago

0.12.6

1 year ago

0.0.56

1 year ago

0.0.57

1 year ago

0.10.0

1 year ago

0.0.58

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.0.6

1 year ago

0.0.40

1 year ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.43

1 year ago

0.0.44

1 year ago

0.0.22

2 years ago

0.0.45

1 year ago

0.0.23

2 years ago

0.0.46

1 year ago

0.0.24

2 years ago

0.0.47

1 year ago

0.0.25

2 years ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.51

1 year ago

0.0.52

1 year ago

0.0.30

2 years ago

0.0.53

1 year ago

0.0.31

2 years ago

0.0.54

1 year ago

0.0.32

2 years ago

0.0.55

1 year ago

0.0.33

2 years ago

0.0.35

1 year ago

0.0.36

1 year ago

0.0.50

1 year ago

0.0.48

1 year ago

0.0.26

2 years ago

0.0.49

1 year ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago