This file contains 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
import React, { Component, } from 'react'; | |
import { View, Text, TouchableOpacity, FlatList, ListItem, Image, TextInput, Dimensions, | |
Animated, StyleSheet, SectionList, PanResponder, PixelRatio, ScrollView } from 'react-native'; | |
import sectionListGetItemLayout from 'react-native-section-list-get-item-layout' | |
var { height, width } = Dimensions.get('window') | |
/* this component is re-used between displaying the friends/groups and being able to pick them in metoo posts, so there are a few different if statements that |
This file contains 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
import React, { Component, PureComponent } from 'react'; | |
import { connect } from 'react-redux'; | |
import { View, ActivityIndicator, Image, Platform } from 'react-native'; | |
import { FileSystem } from 'expo' | |
import md5 from 'js-md5'; | |
const ios = Platform.OS == 'ios' | |
import { downloadImage, removeFromDownloading } from './NotDumbImageActions'; | |
import { imgDownloadIsOld } from './cacheRedux'; |
This file contains 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
import React, { Component } from 'react'; | |
import { StyleSheet, ListView, AsyncStorage, Alert, FlatList } from "react-native"; | |
import { | |
Container, | |
Body, | |
Content, | |
Header, | |
Left, | |
Right, | |
List, |
This file contains 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
import { Permissions, Location, TaskManager, Notifications } from 'expo' | |
import axios from 'axios' | |
export const BACKGROUND_LOCATION_UPDATES_TASK = 'background-location-updates' | |
export const BACKGROUND_GEOFENCING_UPDATES_TASK = 'background-geofencing-updates' | |
const geofences = [] //I get this from the server, omitted for sake of clarity | |
const url = 'api.metoo.io' | |
TaskManager.defineTask(BACKGROUND_LOCATION_UPDATES_TASK, handleLocationUpdate) | |
TaskManager.defineTask(BACKGROUND_GEOFENCING_UPDATES_TASK, handleGeofencingUpdate) |
This file contains 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
// Copyright 2015-present 650 Industries. All rights reserved. | |
#import "AppDelegate.h" | |
#import <React/RCTPushNotificationManager.h> | |
#import <RadarSDK/RadarSDK.h> | |
@implementation AppDelegate | |
// Put your app delegate methods here. Remember to also call methods from EXStandaloneAppDelegate superclass | |
// in order to keep Expo working. See example below. |
This file contains 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
//...store logic | |
// profiler for redux actions | |
const userTiming = (store) => (next) => (action) => { | |
if (performance.mark === undefined) return next(action) | |
performance.mark(`${action.type}_start`); | |
const result = next(action); | |
performance.mark(`${action.type}_end`); | |
performance.measure(`${action.type}`,`${action.type}_start`,`${action.type}_end`,) | |
return result |
This file contains 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
{ | |
"name": "convertnote", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"scripts": { | |
"start": "nodemon --exec babel-node src/server.js", | |
"build": "babel src --out-dir dist", | |
"serve": "node dist/server.js" | |
}, |
This file contains 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
var sb = null; | |
export default class Chat extends Component { | |
constructor(props) { | |
super(props); | |
sb = SendBird.getInstance(); | |
this.state = { | |
channel: props.channel, channelUrl: props.channelUrl, name: props.name, messageQuery: '', channel: '', name: '', messages: props.channel.messageList || [], | |
}; | |
} |
OlderNewer