1.0.16 • Published 1 year ago

streak-library v1.0.16

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

React Native Streak Styling Library

Installation

Install this library with npm

  npm install streak-library

Install this library with yarn

  yarn add streak-library

Styling Components For Streak

Components NameDescriptionProps
GeneralTextFor writing normal textheadingText:String,fontSize:Number, fontFamily:String, textColor:String
ButtonWithLeftIconIt fixes the icon in left side of buttononPress: () => void, buttonText: string, iconSrc: string, textStyle?: TextStyle, imageStyle?: ImageStyle, containerStyle?: ViewStyleViewStyle[]
GeneralButtonIt normal button with gradient shadescontainerStyle?: ViewStyle[], onPress: Function, buttonText: string, rightToTextComponent?: Function, colors?: string[], labelStyle?: TextStyle, buttonStyle?: ViewStyle[], disabled?: boolean, borderColor?: string
GeneralButtonWithNormalBgButton with normal background
GeneralRoundButtonWithImageRound button with image
LinearGradientButtonButton with gradient shades
GeneralButtonWithLoadingButton with simple loading added button with gradientcontainerStyle?: ViewStyle[], onPress: Function, onPressCancel: Function, onPressConfirm: Function, buttonText: string, buttonText2:string, rightToTextComponent?: Function, colors?: string[], labelStyle?: TextStyle, buttonStyle?: ViewStyle[], disabled?: boolean, borderColor?: string, backgroundColor?:string, loading?: boolean, type?: stringonPress:Function, onPressConfirm:Function,onPressCancel:Function , type:String ('Primary','Secondary','primary','secondary','couple','couple2')
RoundButtonButton with round shape
GeneralCheckBoxNormal Checkboxchecked: boolean, setCheck: Function, title: string,subText?: string
GeneralLineSimple LinemarginTop?: stringnumber, lineStyle?: ViewStyleViewStyle[]
CheckBoxWithDefaultBoxAndTextCheckbox with default box and textcheckBoxText: string, onPress: Function , checked: boolean , textColor: string , error?: string
GeneralDropDownIt is dropdown componentvalue: string , setValue: Function , itemStyle: StyleProp , containerStyle: StyleProp , style: StyleProp , labelStyle: any , placeholder: string , defaultValue?: stringundefined , arrowColor: string , dropDownStyle: any , arrowSize: number , iconStyle: any
HeadingAndSubHeadingFor writing heading and subheadingheadingColor?: string , subHeadingColor?: string , heading: string , subHeading: string , headingStyle?: TextStyle , subHeadingStyle?: TextStyle , fontFamilyHeading?: font_family_type , fontFamilySubHeading?: font_family_type , containerStyle?: ViewStyleViewStyle[]
HightlightCardCard with highlightingtext: string , showArrow?: boolean , fontSize?: number
GeneralLoaderLottie loader for streakcontainerStyle?: ViewStyleViewStyle[] , opacity?: number
StepStepsnumber: number , content: string , backgroundColor?: string , textStyle?: TextStyle , leftComponent:Function , containerStyle?: ViewStyleViewStyle[] , numberColor?: string
LoaderSimple loadercolor:String , size:String('small','large')
GeneralTextInputNormal textinputerrorText?: string , value: string , defaultValue?: stringnumber , onChangeText?: (text: string) => void , placeholder?: string , keyboardType?: KeyboardTypeOptions , eyeButton?: any , icon?: any , style?: StyleProp , textInputStyle?: StyleProp , placeholderTextColor?: string , errorContainer?: StyleProp , secureTextEntry?: boolean , autoFocus?: boolean , autoCapitalize?: 'none''sentences''words''characters' , title: string , color?: string , titleColor?: string , borderColor?: string , disabled?: boolean , containerStyle?: ViewStyle[] , titleRightComponent?: Function , textInputRef?: any , onEndEditing?: Function , multiLine?: boolean , numOfLines?: number
TextInputWOHTextinput with WOHerrorText?: string , value: string ,defaultValue?: stringnumber ,onChangeText?: (text: string) => void ,placeholder?: string ,keyboardType?: KeyboardTypeOptions ,eyeButton?: any ,icon?: any ,style?: StyleProp ,textInputStyle?: StyleProp ,placeholderTextColor?: string ,errorContainer?: StyleProp ,secureTextEntry?: boolean ,autoFocus?: boolean ,autoCapitalize?: 'none''sentences''words''characters' ,title: string ,color?: string ,titleColor?: string ,borderColor?: string ,disabled?: boolean ,containerStyle?: ViewStyle[] ,titleRightComponent?: Function
ScrollViewWithScrollIndicatorit is simple scrollview with indicatorscrollViewProps: ScrollViewProps ,containerStyle?: ViewStyle[]ViewStyle , bottomScrollReach?: number , defaultScrollIndicatorState?: boolean , hideBotomSpace?: boolean , heightOfBottomSpace?: number
CardWithTextAndBottomButtonCard with text and can apply button in bottomimageSource?: any , text: string , onPress: Function ,containerStyle?: ViewStyleViewStyle[] , buttonText: stringundefined , colors?: string[] , fontSize?: number
GeneralCarouselIt is general carouselitems: any, renderItem: Function , carouselContainerStyle?: ViewStyle[] , itemWidth: number , dotColor: string , dotColorFade: string , dotContainerStyle?: ViewStyle[] , dotStyle?: ViewStyle[] , onLayout?: () => void
ChallengeNotificationNotification for sending challengeisVisible: boolean, setVisible:Function, notificationTitle : string, notificationBody : string
HeaderWithMiddleTitleLeftBackButtonRightAnyComponentHeader with back button and component on rightonPressBack?: Function , title?: string , rightComponent?: Function , titleColor?: string , backColor?: string , buttonColor?: string , containerStyle?: ViewStyleViewStyle[]
ImageComponentWithGeneralHeightDefinedImage with general heightbuttonSource: ImageSourcePropType , imageStyle?: ImageStyle , portionOfGeneralHeight?: number
SavingsButtonSettings button or Savings buttonbuttonContainerStyle: ViewStyleViewStyle[] , imgSrc: string , buttonLabel: string , buttonSublabel: string , onPress: () => void , colors: [] , borderColor: string , backgroundColor: string , labelStyle: TextStyleTextStyle[]
SuccessRiveFor animated robotname:string
MasonryListDirect list of elementsinnerRef?: MutableRefObject<ScrollViewundefined>, loading?: boolean , refreshing?: RefreshControlProps'refreshing' , onRefresh?: RefreshControlProps'onRefresh' , onEndReached?: () => void , onEndReachedThreshold?: number , style?: StyleProp , data: T[] , renderItem: ({item: T, i: number}) => ReactElement , LoadingView?: React.ComponentTypeReact.ReactElementnull , ListHeaderComponent?: React.ComponentTypeReact.ReactElementnull , ListEmptyComponent?: React.ComponentTypeReact.ReactElementnull , ListFooterComponent?: React.ComponentTypeReact.ReactElementnull , ListHeaderComponentStyle?: StyleProp , contentContainerStyle?: StyleProp , containerStyle?: StyleProp , numColumns?: numbe ,keyExtractor?: ((item: Tany, index: number) => string)undefined
FAQPopupPopup of FAQimgSrc: ImageSourcePropType , title: string , hideViedo?: boolean , subtitle: string
PopupWithNoBackButtonAndTwoBottomButtonPopup with no back buttonisVisible: boolean , setPopup: Function , statusBarTranslucent: boolean , heading: string , secondaryButtonText: string , primaryButtonText: string , subHeading?: string , onPressSecondaryButton?: Function , onPressPrimaryButton: Function , centerImage?: ImageSourcePropType , containerStyle: ViewStyle
PopupWithBackButtonAndHeaderPopup with back button handlerisVisible: boolean ,setPopup: Function , children: React.ReactChild , statusBarTranslucent: boolean , title: string , headerNotNeeded?: boolean
PopupWithHeaderBackLineAndBottomTwoButtonPopup with header back line and bottom two buttonisVisible: boolean , setPopup: Function , statusBarTranslucent: boolean , title: string , leftButtonText: string , subTitle?: string , rightButtonText: string , onPressLeftButton: Function , onPressRightButton: Function , removeHeaderLine?: boolean , removeButtonLine?: boolean , headerNotNeeded?: boolean , containerStyle: ViewStyle , childrenStyle: ViewStyle
PopupWithNobackButtonAndSingleBottomButtonPopup with no back button and single bottom button,isVisible: boolean , setPopup: Function , children?: React.ReactChild , statusBarTranslucent: boolean , title: string , subTitle?: string , buttonText: string , containerStyle?: ViewStyleViewStyle[] , onPressButton: Function , primaryButton?: boolean , titleStyle: TextStyle , loader?: boolean
PopupWithSingleButtonPopup with single buttonisVisible: boolean , setPopup: Function , children: React.ReactChild , statusBarTranslucent: boolean , title: string , buttonText: string , containerStyle?: ViewStyle , onPressButton: Function , buttonStyle: ViewStyle[]ViewStyle
RoboPopupIt is popup for roboisVisible: boolean , setPopup: Function , children?: React.ReactChild , statusBarTranslucent: boolean , title: string , subTitle?: string , buttonText: string , containerStyle?: ViewStyleViewStyle[] , onPressButton: Function , roboImageSource: ImageSourcePropType , robotImageStyle?: ImageStyleImageStyle[]
SuccessBottomNewIt is an success bottom new popupisVisible: boolean , onDone: Function , image?: any , children?: any , color?: string , heading: string , subHeading: string , buttonText: string , childrenContainerStyle?: ViewStyle , textStyleHeading1?: TextStyle , textStyleHeading2?: TextStyle , imageBackgroundStyle?: ViewStyle , imageStyle?: ImageStyle , orderPlaced?: boolean , buttonColor?: string , body: stringt is an warning popupisVisible: boolean , setPopup: Function , children?: React.ReactChild , statusBarTranslucent: boolean , title: string , subTitle?: string , buttonText: string , containerStyle?: ViewStyle , onPressButton: Function , imageSource?: any , imageStyle?: ImageStyle[]ImageStyle , hideRive: boolean

Usage/Examples

import {GeneralText} from 'streak-library'

function App() {
  return (
  <GeneralText
  headingText={'Hello there'}
  fontSize={fs20}
  fontFamily={'500'}
  textColor={'#242424'}
  />
  )
}
1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago