From 935c87780f3866f5b847c8daabb7c4f7eb03e751 Mon Sep 17 00:00:00 2001 From: pwbrown Date: Tue, 14 Jul 2015 17:46:23 -0500 Subject: [PATCH] Change to event listener example Device is not declared in scope. Should be Display. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aa7eda7..c5ce6db 100644 --- a/README.md +++ b/README.md @@ -89,10 +89,10 @@ var Display = require('react-native-device-display'); var testing = React.createClass({ componentDidMount: function() { - Device.onOrientationDidChange(function() { + Display.onOrientationDidChange(function() { //Change States, Perform Magic, etc... }); } }); -``` \ No newline at end of file +```