{"repo":"cooperka/react-native-snackbar","free":true,"listed":false,"github":"https://github.com/cooperka/react-native-snackbar","clone":"git clone https://github.com/cooperka/react-native-snackbar.git","description":":candy: Material Design \"Snackbar\" component for Android and iOS.","language":"Objective-C++","stars":867,"topics":["android","material","snackbar","material-design","react-native","component"],"license":null,"category":"mobile-apps","readme_excerpt":"React Native Snackbar Material Design \"Snackbar\" component for Android and iOS. Supports custom colors, fonts, and languages. Snackbars are used for displaying a brief message to the user, along with an optional action. They animate up from the bottom of the screen and then disappear shortly afterward. See Google's Material Design guidelines for more info on Snackbars and when to use them. How it works Or, to include an action button: Installation For older apps, use version 2 of this library. The latest version 3 requires React Native = 0.72 with New Architecture enabled . Steps: 1. Install: - Using npm: npm install react-native-snackbar --save - Using Yarn: yarn add react-native-snackbar 2. Install CocoaPods dependencies for iOS: cd ios && pod install && cd .. 3. Import it in your JS: Usage Snackbar.show(options) Shows a Snackbar, dismissing any existing Snackbar first. Accepts an object with the following options: Key Data type Default value? Description ----- ----------- ---------------- ------------- text string Required. The message to show. duration See below Snackbar.LENGTH SHORT How long to display the Snackbar. numberOfLines number 2 The max number of text lines to allow before ellipsizing. textAlignCenter boolean false Whether to center the text. Currently broken on iOS. marginBottom number 0 Margin from bottom. textColor string or style 'white' The color of the message text. backgroundColor string or style undefined (dark gray) The background color for the whole S","default_branch":null,"files":null,"tree":[],"storefront":"/r/cooperka","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cooperka/react-native-snackbar/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}