Skip to content

Instantly share code, notes, and snippets.

View justinvdm's full-sized avatar

Justin van der Merwe justinvdm

View GitHub Profile
diff --git a/src/actions/sync.js b/src/actions/sync.js
index baf8cdd..6361420 100644
--- a/src/actions/sync.js
+++ b/src/actions/sync.js
@@ -14,5 +14,8 @@ export const load = apiAction({
method: api.load,
request: loadRequest,
success: loadSuccess,
- failures: [[ApiResponseError, loadFailure]],
+ failures: [
diff --git a/src/actions/onboarding.js b/src/actions/onboarding.js
index 374a610..485a015 100644
--- a/src/actions/onboarding.js
+++ b/src/actions/onboarding.js
@@ -10,7 +10,7 @@ import {
const { ApiResponseError } = api;
-export const chooseProfilePicture = () => ({
+const chooseProfilePicture = () => ({
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 926567b..3d145ea 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -16,6 +16,17 @@
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:theme="@style/AppTheme">
+ <service android:name="com.evollu.react.fcm.MessagingService">
+ <intent-filter>
diff --git a/scripts/jest/environment.js b/scripts/jest/environment.js
index 470a638..71d7e5f 100644
--- a/scripts/jest/environment.js
+++ b/scripts/jest/environment.js
@@ -8,6 +8,8 @@ import FormData from 'react-native/Libraries/Network/FormData';
import 'react-native';
+jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000;
+
diff --git a/src/views/CameraRoll/__tests__/index-test.js b/src/views/CameraRoll/__tests__/index-test.js
index a697710..18e4452 100644
--- a/src/views/CameraRoll/__tests__/index-test.js
+++ b/src/views/CameraRoll/__tests__/index-test.js
@@ -27,9 +27,11 @@ describe('CameraRoll', () => {
expect(render(createComponent())).toMatchSnapshot();
});
- it('should be able to tap and fire `onPhotoPress`', () => {
+ it('should be able to tap and fire `onPhotoPress`', async () => {
function validate(fields) {
return {
username: [{
type: 'contains_invalid_chars',
payload: {
badChars: '@'
}
}, {
type: 'some_other_error'.
payload: {
function validate(fields) {
return {
username: [{
type: 'contains_invalid_chars',
payload: {
badChars: '@'
}
}, {
type: 'some_other_error'.
payload: {
// containers/events.js
const EVENT_TYPE_TO_CONTAINER = {
call_scheduled: CallScheduledEventContainer,
...
};
// src/stores/helpers.js
// helpers for accessing entities off of state go here

types

CALL_STARTING_HOUR
CALL_STARTING_10_MIN
CALL_STARTING_1_MIN
CALL_ENDED

api

// vars.js
const FG1 = '#333';
// ...
export FG1;
// SomeComponent.js
const styles = StyleSheet.create({