All Projects → billoosijok → React-Native-Interactive-Card

billoosijok / React-Native-Interactive-Card

Licence: MIT license
Interactive Card Component for React Native

Programming Languages

javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to React-Native-Interactive-Card

flip view
A Flutter app with flip animation to view profiles of friends. 🌟
Stars: ✭ 69 (+137.93%)
Mutual labels:  card, animated
allolib
Library for interactive multimedia application development
Stars: ✭ 23 (-20.69%)
Mutual labels:  interactive
idlejs
Execute stuff when user is idle or interactive
Stars: ✭ 35 (+20.69%)
Mutual labels:  interactive
ngx-card
Angular 2+ wrapper for https://github.com/jessepollak/card
Stars: ✭ 73 (+151.72%)
Mutual labels:  card
klipse-repl
Beginners friendly Clojure REPL
Stars: ✭ 44 (+51.72%)
Mutual labels:  interactive
kingslayer
A text-based adventure written in Rust
Stars: ✭ 28 (-3.45%)
Mutual labels:  interactive
Steam-Scripts
Steam userscripts
Stars: ✭ 76 (+162.07%)
Mutual labels:  animated
microbium-app
Draw new worlds
Stars: ✭ 89 (+206.9%)
Mutual labels:  interactive
animation-wrapper-view
Declarative animations with imperative controls for RN/RNW.
Stars: ✭ 53 (+82.76%)
Mutual labels:  animated
dotacard
You are at FODA artwork repository. Play now for free
Stars: ✭ 22 (-24.14%)
Mutual labels:  card
lore
WebGL engine for (big) data visualization.
Stars: ✭ 24 (-17.24%)
Mutual labels:  interactive
Flashcard-Maker-Android
Flashcard Maker is a study app that helps to create e-flashcards. It is more convenient to have flashcards on your phone so that you don't carry all the paperwork. You can prepare flashcards in your PC as CSV file and import it from the app.
Stars: ✭ 55 (+89.66%)
Mutual labels:  card
AnimatedPullToRefresh-master
A Cool pull to refresh widget provided with character animation in header with user defined text. Customise your widget and show off your home screen!!
Stars: ✭ 38 (+31.03%)
Mutual labels:  animated
lumo
A high performance WebGL tile rendering library
Stars: ✭ 58 (+100%)
Mutual labels:  interactive
litscript
Literate Interactive TypeScript
Stars: ✭ 33 (+13.79%)
Mutual labels:  interactive
IrregularGradient
Create animated irregular gradients in SwiftUI.
Stars: ✭ 127 (+337.93%)
Mutual labels:  animated
react-native-gesture-flip-card
A card flipping animation component using gesture for react-native.
Stars: ✭ 93 (+220.69%)
Mutual labels:  card
komorebi
A beautiful and customizable wallpaper manager for Linux
Stars: ✭ 231 (+696.55%)
Mutual labels:  animated
LuminousNewTab
Luminous New Tab is a beautiful 'new tab' browser extension that has an animated gradient background! New tabs will show your bookmarks, the time, weather and let you do searches too!
Stars: ✭ 18 (-37.93%)
Mutual labels:  animated
FullScreenCardViewPager Android
Endless full-screen card ViewPager inspired by apple iBook for Android
Stars: ✭ 134 (+362.07%)
Mutual labels:  card

react-native-interactive-card

Customizable interactive card component for React Native

Table of Content

⬇️ Installation

npm

npm install react-native-interactive-card

yarn

yarn add react-native-interactive-card

🎉 Usage

import InteractiveCard, { Content, Header } from 'react-native-interactive-card'

Basic

// render() {
//    return (
	<InteractiveCard>
	    <Header>
		// Header View...
	    </Header>
	    <Content>
		// Content View
	    </Content>
	</InteractiveCard>
//    );
// }

Cool

const cardOptions = { overlayOpacity : 1 };
const contentOptions = { enterFrom: "right" }

<InteractiveCard {...cardOptions}>
    <Header>
    	<View style={headerStyle}>
	    <Text style={styles.text}>Header</Text>
	</View>
    </Header>
    <Content {...contentOptions}>
    	<View style={contentStyle}>
	    <Text style={textStyle}>Content</Text>
	</View>
    </Content>
</InteractiveCard>

const headerStyle = {
	backgroundColor: "#68E9FF", padding: 30, 
	marginBottom: 10, borderRadius: 5 
};
const textStyle = {
	fontSize: 40, opacity: 0.6,
	textAlign: 'center', fontWeight: 'bold'
};
const contentStyle = {
	width: "90%", padding: 50, 
	backgroundColor: "#E85F53"
};

📲 Examples

⚙️ Props

<InteractiveCard>

Prop Type Description
openCoords object: {y: number, x: number} The x & y coordinates of the location that the card should be in the window when it opens. Where the origin i.e (0,0) is the top left of the window. If you don't want y or x to change, just pass null.
The x supports a special value "center" to be passed, where the card will be centered in the screen
Default: {y: 20, x: "center"}.
overlayOpacity number Opacity of the overlay under the card when it opens.
Default: 0.8. Tip: set this value to 1.0 to completely "hide" the rest of the cards underneath.
overlayColor string Overlay color.
onOpen  function Callback that gets called when the user opens the card.
Passed: the card object
onClose function Callback that gets called when the card closes.
Passed: the card object
onAnimationProgress function Callback that gets called every animation frame of the card.
Passed: Animation progress in a scale of 0 to 1 (where 1 is the card open).
onDraggingProgress function Callback that gets called for every panning movement while the card is being dragged.
Passed: The progress of the panning a scale of 0 to 1 (where 1 is the card open).

Note that the number can exceed 0 or 1 when the user keeps panning even further.

<Content>

Prop Type Description
enterFrom enum: "bottom","top","right","left","none" Direction from which the content enters. Default: "top"

⚖️ License

MIT

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].