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: AutoPublish Package - GPR | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
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
// fork from: https://raw.githubusercontent.com/kamalpandey/react-native-image-slider-show/master/Slideshow.js | |
import React, {Component} from 'react'; | |
import PropTypes from 'prop-types'; | |
import { | |
Image, | |
Text, | |
View, | |
ScrollView, | |
StyleSheet, |
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
// Modal | |
import { Modal as NativeModal } from "react-native"; | |
import ImageViewer from "react-native-image-zoom-viewer"; | |
class MyView extends React.Component { | |
renderImageModal () { | |
const image = this.state.selectedImage; |
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
server { | |
listen 80; | |
root /var/www/react-app/build; | |
index index.html index.htm index.nginx-debian.html; | |
server_name your_server_ip_or_domain; | |
location / { | |
try_files $uri /index.html; |
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 { AsyncStorage, InteractionManager, Vibration } from "react-native"; | |
import { NavigationActions } from "react-navigation"; | |
import { Notifications } from "expo"; | |
import _ from "lodash"; | |
const appIcon = require("../../assets/icon.png"); |
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
// dependencias | |
const _ = require("lodash"); | |
const AWS = require('aws-sdk'); | |
const AmazonS3URI = require("amazon-s3-uri"); | |
const request = require("request"); | |
const accessparams = { | |
accessKeyId: "", | |
secretAccessKey: "", | |
}; | |
const s3 = new AWS.S3(accessparams); |
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
class Wallet { | |
constructor (patient, currency) { | |
this.patient = patient; | |
this.currency = currency; | |
} | |
async getBalanceAsync () { | |
// sum `amount` aggregation with patient and currency filter | |
return 0; |
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
const express = require('express'); | |
const app = express(); | |
app.use( | |
express.static("dist"), { | |
maxAge: 0, | |
etag: false, | |
setHeaders: function(res: any, path: any, stat: any) { | |
res.set("Cache-Control", "private, no-cache, no-store, must-revalidate"); | |
res.set("Expires", "-1"); |
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 { Platform, YellowBox } from "react-native"; | |
import _ from "lodash"; | |
const ignoredYellowBox = console.ignoredYellowBox || []; | |
console.ignoredYellowBox = ["Setting a timer"].concat(...ignoredYellowBox); | |
YellowBox.ignoreWarnings(console.ignoredYellowBox); | |
var urljoin = require("url-join"); | |
const io = require("socket.io-client"); |
NewerOlder