Giter Site home page Giter Site logo

qfight / react-native-actionsheet-api Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 5.0 1.92 MB

React Native API Andorid polyfill

License: MIT License

JavaScript 100.00%
react-native action-sheet actionsheet actionsheet-api showactionsheetwithoptions actionsheetios

react-native-actionsheet-api's People

Contributors

zdying avatar

Stargazers

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

Watchers

 avatar  avatar

react-native-actionsheet-api's Issues

Can only update a mounted or mounting component

Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.

Please check the code for the ActionSheet component.

Warning: Each child in an array or iterator should have a unique "key" prop.

Hi, on react-native 0.43.4. I get this warning when the action sheet is displayed:

Warning: Each child in an array or iterator should have a unique "key" prop.

Check the render method of `ActionSheet`. See https://fb.me/react-warning-keys for more information.
in View (created by ActionSheet)
in ActionSheet (created by HomeDetailsScreen)
in RCTView (created by View)
in View (created by HomeDetailsScreen)
in HomeDetailsScreen (created by _class)
in _class
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer

Warning: Can only update a mounted or mounting component.

This warning happens on Android, and is freezing the UI, so its quite critical.

I have ActionSheet on two places in my app:

  1. Disposable screen
  2. Non disposable screen (via TabBar)

To reproduce:

Open screen 1.
Click button to open ActionSheet on screen 1. -> Cancel.
Close screen 1.
Click button to Open ActionSheet on screen 2.

It will throw this warning:

05-29 09:48:36.428  9999 10042 W ReactNativeJS: Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.
05-29 09:48:36.428  9999 10042 W ReactNativeJS:
05-29 09:48:36.428  9999 10042 W ReactNativeJS: Please check the code for the ActionSheet component.

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.