All Projects → Kishanjvaghela → React Native Cardview

Kishanjvaghela / React Native Cardview

Licence: mit
Native CardView for react-native (All Android version and iOS)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Cardview

Cardview
小票形状的CardView,可以修改阴影颜色
Stars: ✭ 494 (+15.96%)
Mutual labels:  shadow, cardview
Flutter Infinitecards
An infinite card switching UI for Flutter, support custom animation 自定义实现神奇动效的卡片切换视图
Stars: ✭ 333 (-21.83%)
Mutual labels:  card, cardview
Cardslideview
一行代码实现ViewPager卡片效果,比ViewPager2更强大,底层同样是RecyclerView
Stars: ✭ 301 (-29.34%)
Mutual labels:  card, cardview
Android Infinitecards
An infinite card switching UI for Android, support custom animation 自定义实现神奇动效的卡片切换视图
Stars: ✭ 1,692 (+297.18%)
Mutual labels:  card, cardview
Uicard
Generic UI for card games like Hearthstone, Magic Arena and Slay the Spire...
Stars: ✭ 142 (-66.67%)
Mutual labels:  card, cardview
Android-Material-Design-Template
Android Material Design UI Template , with Google Design support , card view , butterknife , CoordinateLayout , CollapsingToolbar .
Stars: ✭ 56 (-86.85%)
Mutual labels:  card, cardview
flip view
A Flutter app with flip animation to view profiles of friends. 🌟
Stars: ✭ 69 (-83.8%)
Mutual labels:  card, cardview
react-native-shadow-cards
Cards are a great way to display information, usually containing content and actions about a single subject. Cards can contain images, buttons, text and more.
Stars: ✭ 42 (-90.14%)
Mutual labels:  card, cardview
Magarena
Magarena is a single-player fantasy card game played against a computer opponent.
Stars: ✭ 311 (-27%)
Mutual labels:  card
Handycontrols
Contains some simple and commonly used WPF controls based on HandyControl
Stars: ✭ 347 (-18.54%)
Mutual labels:  cardview
Gradient Widgets
Flutter widgets wrapped with gradients
Stars: ✭ 290 (-31.92%)
Mutual labels:  card
Mfcard
Easily integrate Credit Card payments module in iOS App. Swift 4.0
Stars: ✭ 356 (-16.43%)
Mutual labels:  card
Shadowview
An iOS Library that makes shadows management easy on UIView.
Stars: ✭ 391 (-8.22%)
Mutual labels:  shadow
Stacklayoutmanager
customized layoutmanager,let item pile up like stackview/类似最美有物卡片堆叠效果
Stars: ✭ 343 (-19.48%)
Mutual labels:  card
Cercle
Cercle is a CRM+Project Manager for your organization - Phoenix Framework & Vuejs
Stars: ✭ 284 (-33.33%)
Mutual labels:  card
Skeleton
Skeleton Android
Stars: ✭ 293 (-31.22%)
Mutual labels:  cardview
Drawer Behavior
Drawer behavior is a library that provide an extra behavior on drawer, such as, move view or scaling view's height while drawer on slide.
Stars: ✭ 394 (-7.51%)
Mutual labels:  card
Readme Template
📜 Modelos readme para qualquer pessoa copiar e usar em seu GitHub.
Stars: ✭ 287 (-32.63%)
Mutual labels:  card
Tintlayout
This library help you to achieve popular drop shadow effect from view.
Stars: ✭ 322 (-24.41%)
Mutual labels:  shadow
Npx card
use npx anmol to connect with me
Stars: ✭ 377 (-11.5%)
Mutual labels:  card

react-native-card-view npm version npm downloads Platform - Android and iOS MIT

npm

Native CardView that compatible for iOS and Android( both lollipop and pre-lolipop).

Website
Material Design Card Spec
CardView Android Documentation

Getting started

$ npm install react-native-cardview --save
# --- or ---
$ yarn add react-native-cardview

Mostly automatic installation

$ react-native link react-native-cardview

Manual installation

iOS

Dont need to setup

Android

  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import com.kishanjvaghela.cardview.RNCardViewPackage; to the imports at the top of the file
  • Add new RNCardViewPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-cardview'
    project(':react-native-cardview').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-cardview/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      implementation project(':react-native-cardview')
    

Usage

N|Example

N|Example

Example

Browse the files in the /example directory.

import CardView from 'react-native-cardview'
<CardView
          cardElevation={2}
          cardMaxElevation={2}
          cornerRadius={5}>
          <Text>
              Elevation 0
          </Text>
</CardView>

You can also follow

Attributes

  • cardElevation (Android/iOS)

An attribute to set the elevation of the card. This will increase the 'drop-shadow' of the card. There can be some performance impact when using a very high elevation value.

  • cardMaxElevation (Android)

An attribute to support shadow on pre-lollipop device in android. cardMaxElevation

  • cornerRadius (Android/iOS) An attribute to set the radius of the card.

  • useCompatPadding (Android)

CardView adds additional padding to draw shadows on platforms before Lollipop. setUseCompatPadding

  • cornerOverlap (Android)

On pre-Lollipop platforms, CardView does not clip the bounds of the Card for the rounded corners. Instead, it adds padding to content so that it won't overlap with the rounded corners. You can disable this behavior by setting this field to false.

Setting this value on Lollipop and above does not have any effect unless you have enabled compatibility padding.

setPreventCornerOverlap

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].