Skip to content

Instantly share code, notes, and snippets.

View kiki-le-singe's full-sized avatar

Anthony Albertini kiki-le-singe

View GitHub Profile
import React, { Component } from 'react'
import Share from 'react-native-share'
import RNFetchBlob from "rn-fetch-blob";
import RNFS from 'react-native-fs'
export default class EventShare extends Component {
constructor(props) {
super(props)
this.state = {
@VeraZab
VeraZab / LocalNotifications.js
Last active February 26, 2023 23:26
Simple local notification with Expo
import React, {Component} from 'react';
import {TextInput, View, Keyboard} from 'react-native';
import {Constants, Notifications, Permissions} from 'expo';
export default class Timer extends Component {
onSubmit(e) {
Keyboard.dismiss();
const localNotification = {
title: 'done',
@guerrerocarlos
guerrerocarlos / main.js
Created September 6, 2012 05:07
loading socket.io using require.js
// Require.js allows us to configure shortcut alias
require.config({
// The shim config allows us to configure dependencies for
// scripts that do not call define() to register a module
shim: {
'socketio': {
exports: 'io'
},
'underscore': {
exports: '_'