Giter VIP home page Giter VIP logo

app-mobile's Introduction

App-Mobile

Screenshots

alt text for screen readers

alt text for screen readers

alt text for screen readers

alt text for screen readers

alt text for screen readers

Requirements

Last versions of Node, npm and yarn installed

Install all dependencies

yarn install

In order to fix some warnings:

WARNING: After installing all dependencies you must modify the node_modules/react-native-selectmultiple-button/libraries/SelectMultipleButton.js file You must replace constructor and componentDidMount functions and replace componentWillReceiveProps for getDerivedStateFromProps

 constructor(props) {
    super(props)
    this.state = {
      selected: false,
      lastPropsSelected: null,
    }
  }

  componentDidMount() {
    this.setState({
      selected: this.props.selected,
    })
  }

  /*
  componentWillReceiveProps(nextProps) {
    if (this.props.selected !== nextProps.selected) {
      this.setState({
        selected: nextProps.selected
      })
    }
  }
    */

  static getDerivedStateFromProps(props, state) {
    if (props.selected !== state.lastPropsSelected) {
      return {
        selected: props.selected > state.lastPropsSelected,
        lastPropsSelected: props.selected,
      };
    }

    // Return null to indicate no change to state.
    return null;
  }

WARNING: Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground.

Fix: To fix this issue...

Navigate to your node_modules/react-native/Libraries/Core/Timers/JSTimers.js file.

Look for the variable MAX_TIMER_DURATION_MS

Change its value to 10000 * 1000

Save the changes (with auto format turned off) and re-build your app.

app-mobile's People

Contributors

damianganopolsky avatar alasinofranco3 avatar ferfabbiano avatar martincohen98 avatar

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.