MCPcopy
hub / github.com/jeremybarbet/react-native-modalize

github.com/jeremybarbet/react-native-modalize @2.1.1 sqlite

repository ↗ · DeepWiki ↗ · release 2.1.1 ↗
165 symbols 453 edges 73 files 12 documented · 7%
README

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.

Simple Fixed Snapping Absolute FlatList Open Apple Facebook Slack

Installation

yarn add react-native-modalize react-native-gesture-handler

iOS

npx pod-install ios

Android

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.

Extension points exported contracts — how you extend this code

ITimingProps (Interface)
(no doc)
src/options.ts
ISpringProps (Interface)
(no doc)
src/options.ts
IConfigProps (Interface)
(no doc)
src/options.ts
IProps (Interface)
(no doc)
src/options.ts
IHandles (Interface)
(no doc)
src/options.ts

Core symbols most depended-on inside this repo

close
called by 13
src/options.ts
open
called by 10
src/options.ts
useCombinedRefs
called by 9
examples/expo/src/utils/use-combined-refs.js
useCombinedRefs
called by 9
examples/react-navigation/src/utils/use-combined-refs.js
handleClose
called by 6
src/index.tsx
invariant
called by 5
src/utils/invariant.ts
renderComponent
called by 3
src/index.tsx
handleLoad
called by 3
examples/react-native-navigation/src/screens/FacebookWebView.js

Shape

Function 119
Method 33
Class 8
Interface 5

Languages

TypeScript82%
Java18%

Modules by API surface

src/index.tsx23 symbols
src/options.ts14 symbols
examples/react-native-navigation/src/screens/FacebookWebView.js8 symbols
examples/react-navigation/android/app/src/main/java/com/reactnavigationexample/MainApplication.java7 symbols
examples/react-native-navigation/android/app/src/main/java/com/reactnativenavigationexample/MainApplication.java7 symbols
examples/react-navigation/src/components/modals/FacebookWebView.js6 symbols
examples/react-native-navigation/src/screens/SectionList.js6 symbols
examples/expo/src/components/modals/FacebookWebView.js6 symbols
examples/react-navigation/android/app/src/debug/java/com/reactnavigationexample/ReactNativeFlipper.java5 symbols
examples/react-native-navigation/android/app/src/debug/java/com/reactnativenavigationexample/ReactNativeFlipper.java5 symbols
src/utils/invariant.ts4 symbols
examples/react-navigation/android/app/src/main/java/com/reactnavigationexample/MainActivity.java4 symbols

Dependencies from manifests, versioned

@babel/core7.6.2 · 1×
@babel/runtime7.6.2 · 1×
@commitlint/cli9.1.2 · 1×
@commitlint/config-conventional9.1.2 · 1×
@expo/webpack-config0.12.3 · 1×
@react-native-community/masked-view0.1.8 · 1×
@react-navigation/bottom-tabs5.2.6 · 1×
@react-navigation/native5.1.5 · 1×
@types/react17.0.29 · 1×
@types/react-native0.65.6 · 1×
@typescript-eslint/eslint-plugin3.10.1 · 1×
@typescript-eslint/parser3.10.1 · 1×

For agents

$ claude mcp add react-native-modalize \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact