Giter Club home page Giter Club logo

dominicstop / react-native-ios-modal Goto Github PK

View Code? Open in Web Editor NEW
125.0 3.0 3.0 126.84 MB

A react-native component for displaying a modal on iOS by natively wrapping a react-native view inside a UIViewController and presenting it.

License: MIT License

Kotlin 0.26% JavaScript 0.43% Java 3.51% Swift 53.90% C 0.02% Objective-C 2.16% Ruby 0.64% Starlark 0.13% CMake 0.06% C++ 1.63% Objective-C++ 1.00% TypeScript 36.26%
react-native modal ios-swift native-module native-ui-component react-native-component react-native-modal

react-native-ios-modal's Introduction

react-native-ios-modal

๐Ÿšงโš ๏ธ Re-Write in Progress โš ๏ธ๐Ÿšง

Hi, this library is being re-written โ€” please check the wip branch, the examples directory, or the TODO.md file for progress โœจ (for the old version of the docs, see: README-old).

  • Support for iOS 15 sheet detents, and iOS 16 custom detents (+ all the related sheet-related customizations and events).
  • Typescript re-write for better auto-complete.
  • Streamlining the modal-related events, and exposing more events.
  • Better iPad support.
  • Etc.



Try out the wip version of the library:

npm install [email protected]

react-native-ios-modal's People

Contributors

alemonfox avatar dominicstop avatar luism3861 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-ios-modal's Issues

RN < 0.60 support?

Does this library support RN < 0.60? If yes, how to do the linking without Pod?

How to detect click on a React view

i want to close presented UIView Controller when we tap on React view with navigate function only else stay same right now screen open in background while UIViewController is still presented

Error on trying to make Modal visible

I'm trying to show up the modal but it thrown to me this error:

{"errorCode": "modalAlreadyPresented", "errorMessage": "Cannot present modal because it's already presented", "isInFocus": false, "isPresented": false, "modalLevel": -1, "modalLevelPrev": -1, "modalUUID": "62BF1859-E846-496F-8245-B54FA7CABD69", "target": 123, "visibility": true}

The code:

import { ModalView } from 'react-native-ios-modal';
...

<ModalView
                    ref={ref => this.modalRef = ref}
                >
                    <>
                        <MoreOptions
                            item={song}
                            context={context}
                            propsContext={this.props}
                            refresh={() => this.props.refreshAnAction()}
                            onclose={() => {
                                this.props.unsubscribeStates()
                            }}
                        />
                    </>
                </ModalView>

Duplicate symbol when used with react-native-ios-context-menu

Running "react-native-ios-context-menu": "^1.15.3" and "react-native-ios-modal": "2.0.0-3", I'm getting this when trying to run on iOS:

โŒ  duplicate symbol '_OBJC_CLASS_$_RNIUtilitiesModule' in
โ”Œโ”€ react_native_ios_context_menu(RNIUtilitiesModule-b92ebfa9be62aee50282024fea0c7bbf.o)
โ””โ”€ react_native_ios_modal(RNIUtilitiesModule-54d99e7cf367dadfffd5a255f4517da1.o)

โŒ  duplicate symbol '_OBJC_METACLASS_$_RNIUtilitiesModule' in
โ”Œโ”€ react_native_ios_context_menu(RNIUtilitiesModule-b92ebfa9be62aee50282024fea0c7bbf.o)
โ””โ”€ react_native_ios_modal(RNIUtilitiesModule-54d99e7cf367dadfffd5a255f4517da1.o)

โŒ  duplicate symbol '_OBJC_CLASS_$_RNIWrapperViewManager' in
โ”Œโ”€ react_native_ios_context_menu(RNIWrapperViewManager-f8c3f0cfed108e664fd50401441cf42e.o)
โ””โ”€ react_native_ios_modal(RNIWrapperViewManager-68e825d59b1819710e3cd00834fa7de5.o)

โŒ  duplicate symbol '_OBJC_METACLASS_$_RNIWrapperViewManager' in
โ”Œโ”€ react_native_ios_context_menu(RNIWrapperViewManager-f8c3f0cfed108e664fd50401441cf42e.o)
โ””โ”€ react_native_ios_modal(RNIWrapperViewManager-68e825d59b1819710e3cd00834fa7de5.o)

โŒ  duplicate symbol '_OBJC_CLASS_$_RNIWrapperViewModule' in
โ”Œโ”€ react_native_ios_context_menu(RNIWrapperViewModule-113e46a2448190e27d17b3aa5a450744.o)
โ””โ”€ react_native_ios_modal(RNIWrapperViewModule-dc13d1c6676d7852722a52b957d40be6.o)

โŒ  duplicate symbol '_OBJC_METACLASS_$_RNIWrapperViewModule' in
โ”Œโ”€ react_native_ios_context_menu(RNIWrapperViewModule-113e46a2448190e27d17b3aa5a450744.o)
โ””โ”€ react_native_ios_modal(RNIWrapperViewModule-dc13d1c6676d7852722a52b957d40be6.o)

โŒ  ld: 6 duplicate symbols for architecture arm64
โŒ  clang: error: linker command failed with exit code 1 (use -v to see invocation)

Unable to scroll FlatList

Hi! Thanks for awesome library.

I am currently trying to use it with FlatList, but scroll is not working. ScrollView works fine, but I can not use it in my particular case :(

Any ideas ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.