2.1.1 • Published 2 years ago

react-native-modalize v2.1.1

Weekly downloads
11,290
License
MIT
Repository
github
Last release
2 years ago

Modalize

npm version

A highly customizable modal/bottom sheet that loves scrolling content.

This component has been built with react-native-gesture-handler to address the common issue of scrolling, swiping and handling the keyboard behaviors, you can face with react-native's modal.

This component comes with a ScrollView, the default renderer, a FlatList or a SectionList. They are all three built-in and make your life easier, just pass your content and Modalize will handle the rest for you. You can also have the possibility to pass your own custom renderer.

Installation

yarn add react-native-modalize react-native-gesture-handler
npx pod-install ios

React Native <= 0.59

Follow this guide to complete the Android installation.

React Native > 0.60

You don't need to follow the guide mentioned above because autolinking from React already did the steps.

Usage

Here is a quick example, using the default ScrollView renderer.

import React, { useRef } from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import { Modalize } from 'react-native-modalize';

export const App = () => {
  const modalizeRef = useRef<Modalize>(null);

  const onOpen = () => {
    modalizeRef.current?.open();
  };

  return (
    <>
      <TouchableOpacity onPress={onOpen}>
        <Text>Open the modal</Text>
      </TouchableOpacity>

      <Modalize ref={modalizeRef}>...your content</Modalize>
    </>
  );
};

Documentation

Please check out the full documentation available here to find all about the props, methods and examples of Modalize's usage.

2.1.1

2 years ago

2.1.0

2 years ago

2.0.13

3 years ago

2.0.11

3 years ago

2.0.12

3 years ago

2.0.9

3 years ago

2.0.10

3 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.3.7-rc.28

5 years ago

1.3.7-rc.26

5 years ago

1.3.7-rc.27

5 years ago

1.3.7-rc.25

5 years ago

1.3.7-rc.24

5 years ago

1.3.7-rc.23

5 years ago

1.3.7-rc.22

5 years ago

1.3.7-rc.19

5 years ago

1.3.7-rc.18

5 years ago

1.3.7-rc.17

5 years ago

1.3.7-rc.16

5 years ago

1.3.7-rc.15

5 years ago

1.3.7-rc.14

5 years ago

1.3.7-rc.13

5 years ago

1.3.7-rc.12

5 years ago

1.3.7-rc.11

5 years ago

1.3.7-rc.10

5 years ago

1.3.7-rc.9

5 years ago

1.3.7-rc.8

5 years ago

1.3.7-rc.7

5 years ago

1.3.7-rc.6

5 years ago

1.3.7-rc.5

5 years ago

1.3.7-rc.4

5 years ago

1.3.7-rc.3

5 years ago

1.3.7-rc.2

5 years ago

1.3.7-rc.1

5 years ago

1.3.7-rc.0

5 years ago

1.3.6

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.3.0-rc.1

5 years ago

1.3.0-rc.0

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

1.0.0-alpha.23

6 years ago

1.0.0-alpha.22

6 years ago

1.0.0-alpha.21

6 years ago

1.0.0-alpha.19

6 years ago

1.0.0-alpha.18

6 years ago

1.0.0-alpha.17

6 years ago

1.0.0-alpha.13

6 years ago

1.0.0-alpha.12

6 years ago

1.0.0-alpha.11

6 years ago

1.0.0-alpha.10

6 years ago

1.0.0-alpha.9

6 years ago

1.0.0-alpha.7

6 years ago

1.0.0-alpha.6

6 years ago

1.0.0-alpha.5

6 years ago

1.0.0-alpha.4

6 years ago

1.0.0-alpha.2

6 years ago

1.0.0-alpha.1

6 years ago

1.0.0-alpha.0

6 years ago