Last active
August 9, 2017 08:35
-
-
Save FreddyPoly/c3d8d8e351b16533bae501a33bc4e956 to your computer and use it in GitHub Desktop.
[REACT NATIVE] Mesure de performances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PerfMonitor from 'react-native/Libraries/Performance/RCTRenderingPerf'; | |
componentDidMount() { | |
PerfMonitor.toggle(); | |
setTimeout(() => { | |
PerfMonitor.start(); | |
setTimeout(() => { | |
PerfMonitor.stop(); | |
}, 25000); | |
}, 5000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment