Skip to content

Instantly share code, notes, and snippets.

View myjobs
import React from 'react';
import {Text,View, TouchableOpacity,FlatList, StatusBar, ImageBackground, ActivityIndicator, Alert} from 'react-native';
import JobItem from "../../components/Items/ComJobItem";
import firebase from 'react-native-firebase';
import { companiesRef,jobRef } from '../../api/index';
import IonicIcon from 'react-native-vector-icons/Ionicons';
import {Button,Card,Content, Container} from 'native-base';
import { getAllJob,getCloseJob } from "../../api/JobsApi";
import { withNavigationFocus, } from 'react-navigation';
import HeaderDefault from "../../components/Header/HeaderDefault";
@vhuytdt
vhuytdt / Api
Created Apr 25, 2018
Notification Api
View Api
import React from 'react';
import { notificationDoc, tokenDoc, notiTemplateDoc } from "../api/rootRef";
import firebaseClient from "../components/Notification/FirebaseClient";
export const pushNotification = async (senderId,receiverId,message,photo,link, notificationTypeId=0,jobId,title="Tin nhắn mới") => {
notificationDoc.add({
senderId,
receiverId,
You can’t perform that action at this time.