Skip to content

Commit

Permalink
[docs] Clarify that registerForPushNotificationsAsync is in the docs
Browse files Browse the repository at this point in the history
This is a function defined in the docs, not part of the Expo SDK.

Fixes https://github.com/expo/expo-docs/issues/216
  • Loading branch information
ide committed Dec 19, 2018
1 parent 26ea436 commit cd76ceb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/versions/unversioned/guides/push-notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,15 @@ import {
View,
} from 'react-native';

import registerForPushNotificationsAsync from 'registerForPushNotificationsAsync';
// This refers to the function defined earlier in this guide
import registerForPushNotificationsAsync from './registerForPushNotificationsAsync';

export default class AppContainer extends React.Component {
state = {
notification: {},
};

componentWillMount() {
componentDidMount() {
registerForPushNotificationsAsync();

// Handle notifications that are received or selected while the app
Expand Down

0 comments on commit cd76ceb

Please sign in to comment.