Coder Social home page Coder Social logo

swym_app's Introduction

Swym Mobile App

The Swym app enables you to win Bitcoin by simply saving money.

Visit our website and join the pool.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Running the App

Prerequisites: npm, expo

  • pull from github
  • run command 'npm install'
  • run 'npm run ios' to run code on iPhone

License

Do What the F**k You Want To Public License

swym_app's People

Contributors

danielleolgin avatar jessupcn avatar joelmatiasduran avatar nadirhamid avatar dependabot[bot] avatar coinward avatar razteve avatar leanscience avatar saidfatah avatar connorbkirk avatar

Stargazers

Dajour Resiere avatar  avatar Kamal Chandra Upreti avatar  avatar  avatar Dallin Bland avatar  avatar Johns Beharry avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

swym_app's Issues

Drawing Countdown

Create a live countdown on the pool screen so that it reaches 0 at the scheduled prize selection broadcast

Automatic Refresh in App

Currently, to see an updated transaction in your savings tab or a new winner, you need to log out of the app and log back in. Looking to implement automatic refreshes in app

Auth0 integration

Setup Auth0 for Swym App authentication.

We can use this for:
Forgot/Reset password
Email Verification
Multifactor authentication
Google auth

the useEffects that have setState in them should be cleaned

currently the way some things are done in the app is not following best practices when using react
for example these two useEffects in src/screens/wallet/WalletScreen.js :

  useEffect(() => {
    if (userAccount !== null && typeof userAccount.isWinner === 'boolean') {
      setShowAnnouncementModal(true);
    }
  }, [userAccount]);

so basically if we want to clean up this useEffect we can do it this :

  useEffect(() => {
    let mounted =true 
    if (userAccount !== null  &&  typeof userAccount.isWinner === 'boolean' && mounted ) {
      setShowAnnouncementModal(true);
    }

   //useEffects returns this function when its Parent component is unmounted in this case its WalletScreen 
   return ()=>{
        mounted=false 
  } 
  }, [userAccount]);

what this does is that it'll try to setShowAnnouncementModal only if the WalletScreen component is till mounted
they should be writing this way

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.