Skip to content

Instantly share code, notes, and snippets.

View shanemduggan's full-sized avatar

Shane Duggan shanemduggan

  • Los Angeles, CA
View GitHub Profile
@shanemduggan
shanemduggan / Component.js
Created October 7, 2020 01:17
Global Styles
import { COLORS } from ./helpers/constants;
const style = {
button: {
backgroundColor: COLORS.DARK_BLUE
}
}
@shanemduggan
shanemduggan / App.js
Last active September 21, 2021 01:42
Natively retrieve initial notification (iOS)
import React, { Component } from 'react';
import { View } from 'react-native';
import NativeHelpers from './NativeHelpers';
class App extends Component {
componentDidMount() {
const initialPush = await NativeHelpers.getInitialNotification();
// Do something with initial push
}
@shanemduggan
shanemduggan / gist:31ca1525a98f9324ce7264687822947a
Created March 12, 2020 22:25
Natively retrieving initial push notification
Start