[BREAKGLASS] Append-only mirror of github.com/bluewallet/react-native-true-sheet
Go to file
2024-04-27 02:50:43 +08:00
.github chore: ci use v4 2024-04-26 17:15:38 +08:00
android feat: add dimmed & dimmedIndex prop (#14) 2024-04-27 01:19:43 +08:00
docs docs: banner 2024-04-27 02:46:17 +08:00
example feat: add dimmed & dimmedIndex prop (#14) 2024-04-27 01:19:43 +08:00
ios feat: add dimmed & dimmedIndex prop (#14) 2024-04-27 01:19:43 +08:00
scripts chore(android): add ktlint 2024-04-01 02:20:31 +08:00
src feat: add dimmed & dimmedIndex prop (#14) 2024-04-27 01:19:43 +08:00
.editorconfig chore: initial commit 2024-03-17 05:43:05 +08:00
.eslintignore chore: tidy 2024-04-22 11:53:26 +08:00
.gitattributes chore: initial commit 2024-03-17 05:43:05 +08:00
.gitignore chore: vercel 2024-04-22 12:40:37 +08:00
.nvmrc chore: initial commit 2024-03-17 05:43:05 +08:00
.prettierignore chore: configure 2024-03-17 13:18:19 +08:00
.watchmanconfig chore: initial commit 2024-03-17 05:43:05 +08:00
.yarnrc.yml chore: configure 2024-03-17 13:18:19 +08:00
babel.config.js chore: configure 2024-03-17 13:18:19 +08:00
CODE_OF_CONDUCT.md chore: initial commit 2024-03-17 05:43:05 +08:00
CONTRIBUTING.md chore: tidy 2024-04-10 06:20:32 +08:00
lefthook.yml chore: lefthook 2024-03-17 13:18:53 +08:00
LICENSE chore: initial commit 2024-03-17 05:43:05 +08:00
package.json chore: release 0.11.0 2024-04-27 02:50:43 +08:00
README.md docs: readme 2024-04-27 01:22:26 +08:00
TrueSheet.podspec chore: remove turbo in favor of expo prebuild 2024-03-25 13:20:44 +08:00
tsconfig.build.json chore: exclude docs from build 2024-04-22 17:57:20 +08:00
tsconfig.json Docs (#8) 2024-04-22 00:20:38 +08:00
yarn.lock docs: add analytics 2024-04-22 21:25:11 +08:00

React Native True Sheet

CI NPM Version NPM Downloads

The true native bottom sheet experience for your React Native Apps. 💩

React Native True Sheet

Features

  • Implemented in the native realm.
  • NOT your pure JS, (re)animated view (might integrate in the future 👀)
  • Clean, fast, and lightweight.
  • Handles your Scrolling needs, natively.
  • Handles your Footer needs, natively.
  • Handles your Keyboard needs, natively.
  • Asynchronus ref methods.
  • Bonus! Blur support on IOS 😎

Installation

yarn add @lodev09/react-native-true-sheet
npm i @lodev09/react-native-true-sheet

Documentation

Usage

import { TrueSheet } from "@lodev09/react-native-true-sheet"

export const App = () => {
  const sheet = useRef<TrueSheet>(null)

  // Present the sheet ✅
  const present = async () => {
    await sheet.current?.present()
    console.log('horray! sheet has been presented 💩')
  }

  // Dismiss the sheet ✅
  const dismiss = async () => {
    await sheet.current?.dismiss()
    console.log('Bye bye 👋')
  }

  return (
    <View>
      <Button onPress={present} title="Present" />
      <TrueSheet
        ref={sheet}
        sizes={['auto', 'large']}
        cornerRadius={24}
      >
        <Button onPress={dismiss} title="Dismiss" />
      </TrueSheet>
    </View>
  )
}

TODO (v1)

  • Test with RN new architecture
  • Reanimated integration(?)

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT