Skip to content

Instantly share code, notes, and snippets.

@libersolis-dev
Last active March 10, 2019 18:47
Show Gist options
  • Save libersolis-dev/3d4e7758c25d8d9c87c18c6abf070bf2 to your computer and use it in GitHub Desktop.
Save libersolis-dev/3d4e7758c25d8d9c87c18c6abf070bf2 to your computer and use it in GitHub Desktop.
App.js
import timeoutfix from './src/time-out-fix-util';
console.disableYellowBox = true;
class App extends Component {
async componentWillMount() {
timeoutfix();
}
// in your render method return what you normall would just make sure
// timeoutfix() is called in async componentWillMount()
render() {
...//return whatever jsx you are currently returning
}
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment