Created
July 1, 2016 13:25
-
-
Save MacKentoch/614575904459bcec2055eb0e05476f12 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ... | |
componentDidMount() { | |
// Ranging: Listen for beacon changes | |
this.beaconsDidRange = DeviceEventEmitter.addListener( | |
'beaconsDidRange', | |
(data) => { | |
this.setState({ | |
dataSource: this.state.dataSource.cloneWithRows(data.beacons) | |
}); | |
} | |
); | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment