1.0.11 • Published 1 year ago

sweet-slider-expo v1.0.11

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

Gesture Slider modal for react native and expo by adlerware.

Repo :- https://github.com/parallex12/SweetSlide.git

Getting Started

  1. Installation

    • Using npm: npm i sweet-slider-expo
    • Using npm: npm i rn-sliding-up-panel

Usage

NOTE:-

  • dont forget to Install npm i rn-sliding-up-panel
import SweetSlide from "sweet-slider-expo";
import React, { useState} from "react";
import SweetSlide from "sweet-slider-expo";
import {Text,View,Button} from "react-native";
const App = () => {
  const [popup,setPopup]=useState(false)

  return (
    <View style={{ flex: 1 }}>
      <SweetSlide
        containerInnerStyle={{ backgroundColor: "red" }}
        containerStyle={{ backgroundColor: "red" }}
        height={500}
        popup={popup}
        setPopup={setPopup}
      >
        <Text>Hello</Text>
      </SweetSlide>
      <Button title="open" onPress={() => setPopup(true)} />
      <Button title="close" onPress={() => setPopup(false)} />
    </View>
  );
};

API

PropertyDescriptionType
popuppass popup state to open closeuseState
setPopuppass setPopup state to open closeuseState
containerStyleStyle for main containerobject
containerInnerStyleStyle for inner content containerobject
heightthe height for the sliderNumber(float)
childrenpass the inner tags inclide JSX

Acknowledgement

  • SweetSlider, which this module is based on.

How to contribute ?

You are interested and want to contribute? Awesome, just consider the following steps:

  1. Fork this repository.
  2. Add and test the fixes/improvements you worked on to a seperate branch.
  3. Submit your pull request(PR).
1.0.11

1 year ago

1.0.10

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