Skip to content
프로젝트

kuraydev/react-native-apple-card-views

GitHub에서 보기

소개

React Native용으로 Apple 및 App Store 카드 뷰를 충실하게 재현했으며, 사용자 지정할 수 있습니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original
React Native Apple Card Views

Battle Tested ✅

Fully customizable and perfect clone of Apple, App Store Card Views for React Native

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Apple Card Views React Native Apple Card Views

React Native Apple Card Views

Version 3 🥳 🚀

  • Only one dependency is required 🏝️
  • Other dependencies are removed/extracted
  • Expo Compatible 🎪
  • Code cleaning 🧹

Installation & Expo Compatible

Add the dependency:

npm i react-native-apple-card-views

Peer Dependencies

IMPORTANT! You need install them
"@freakycoder/react-native-bounceable": ">= 1.0.3"

Options

Usage

AppleCard Usage

<AppleCard
  source={require("./assets/hero_bg_brawlstars_.jpg")}
  onPress={() => {}}
  smallTitle={"NEW GAME"}
  largeTitle={"The Brilliance of Brawl Starts"}
  footnote={
    "The next game from the markers of Clash Royale is here. Tap to learn more."
  }
/>

AppOfTheDayCard Usage

<AppOfTheDayCard
  title={"Colorfy: Coloring Art Games"}
  subtitle={"Drawing & painting for  everyone"}
  largeTitle={"APP" + "\n" + "OF THE" + "\n" + "DAY"}
  buttonText={"GET"}
  iconSource={require("./assets/Colorfy.jpg")}
  backgroundSource={require("./assets/ColorfyBG.jpg")}
  buttonSubtitle={"In-App Purchases"}
  onPress={() => {}}
  onButtonPress={() => {}}
/>

Configuration - Props

AppleCard Props

Property Type Default Description
source image default image set the image background
style style default change the style of the card
smallTitle string NEW GAME change the small title
largeTitle string The Brilliance of Brawl Stars change the main large title
footnoteText string The next game from the markers of Clash Royale is here. Tap to learn more. change the footnote text
backgroundStyle style default set custom style for background image
smallTitleTextStyle style default set custom style for small title
largeTitleTextStyle style default set custom style for large title
footnoteTextStyle style default set custom style for footnote
onPress function null use this to set onPress functionality

AppOfTheDayCard Props

Property Type Default Description
style style default change the style of the card and image background
shadowStyle style default change the style of the card's shadow
backgroundSource image default image set the image background for main card
iconSource image default image set the logo image
largeTitle string "APP OF THE DAY" change the main large title
title string "Colorfy: Coloring Art Games" change the title text
subtitle string "Drawing & painting for everyone" change the subtitle text
buttonText string "GET" change the button's text
buttonSubtitle string "In-App Purchases" change the button's bottom subtitle
largeTitleTextStyle style default set the custom style for large title
subtitleTextStyle style default set the custom style for subtitle text
titleTextStyle style default set the custom style for title text
iconStyle style default set the custom style for icon
buttonOnPress function null set a function for button's onPress
onPress function null set a function for main card's onPress

Roadmap

  • AppleCard Rewritten and Code Cleaning
  • AppleCard More Customization Options

Author

FreakyCoder, [email protected]

License

React Native Apple Card Views Library is available under the MIT license. See the LICENSE file for more info.

관련 프로젝트 살펴보기

불러오는 중…