Coder Social home page Coder Social logo

Comments (7)

neo125874 avatar neo125874 commented on August 17, 2024 1

@pavsidhu many many thanks to your solution!
I put the indicator in the modal, and no need to change my previous modal code(my modal is another library).

from react-native-loading-spinner-overlay.

ywongweb avatar ywongweb commented on August 17, 2024

Similar problem here after upgrading RN to 0.42
Using react-native-router-flux 3.38.0
Showing the spinner as a modal

from react-native-loading-spinner-overlay.

pavsidhu avatar pavsidhu commented on August 17, 2024

@ywongweb My solution to this was to create a custom component using React Native's inbuilt ActivityIndicator which has position absolute and with it's z-index set to a high value.

from react-native-loading-spinner-overlay.

VincentChow avatar VincentChow commented on August 17, 2024

same problem, confilict with the "react-native-modalbox".When use the Redux store to control the display of another component which is react-native-modalbox's modal, the spinner's display will be affected.I think both two component use the same level of window & maybe solve it use @pavsidhu 's method

from react-native-loading-spinner-overlay.

TheRusskiy avatar TheRusskiy commented on August 17, 2024

ended up using my own component with activity indicator and a whole screen view without modal

from react-native-loading-spinner-overlay.

niftylettuce avatar niftylettuce commented on August 17, 2024

releasing new version shortly to npm with support for custom indicator and indicatorStyle

from react-native-loading-spinner-overlay.

dominik-mrugalski avatar dominik-mrugalski commented on August 17, 2024

Another workaround can be adding the second spinner in Modal element but with different condition of showing (compared to the main spinner):

<Modal>
    <Spinner />
    <View>
          [...] modal content
    </View>
</Modal>

It also works like a charm. :)

from react-native-loading-spinner-overlay.

Related Issues (20)

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.