[BREAKGLASS] Append-only mirror of github.com/bluewallet/react-native-true-sheet
Go to file
2024-07-18 13:47:13 -04:00
.github chore: ci use v4 2024-04-26 17:15:38 +08:00
android fix(ios): add null guard (#52) 2024-07-01 22:28:04 +08:00
docs docs: present during mount guide (#59) 2024-07-04 19:16:23 +08:00
example docs: present during mount guide (#59) 2024-07-04 19:16:23 +08:00
ios make anchorViewTag optional 2024-07-18 13:47:13 -04:00
scripts chore(android): add ktlint 2024-04-01 02:20:31 +08:00
src make anchorViewTag optional 2024-07-18 13:47:13 -04:00
.editorconfig chore: initial commit 2024-03-17 05:43:05 +08:00
.eslintignore fix: fix android footer position bug (#25) 2024-05-23 07:39:45 +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 feat: add initialIndex & onMount props (#30) 2024-06-11 00:27:12 +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.12.3 2024-07-01 22:31:01 +08:00
README.md docs: ❤️ 2024-07-04 19:20:16 +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 fix: fix android footer position bug (#25) 2024-05-23 07:39:45 +08:00
yarn.lock docs: present during mount guide (#59) 2024-07-04 19:16:23 +08:00

React Native True Sheet

CI Maintainability NPM Downloads

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

React Native True Sheet - IOSReact Native True Sheet - Android

Features

  • Implemented in the native realm.
  • Clean, fast, and lightweight.
  • Asynchronus ref methods.
  • Bonus! Blur support on IOS 😎

Installation

You can install the package by using either yarn or npm.

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

Next, run the following to install it on IOS.

cd ios && pod install

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>
  )
}

Contributing

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

License

MIT


Made with ❤️ by @lodev09