| Repo | Stars on Github | Monthly downloads | Total Downloads |
|---|---|---|---|
| react-native-image-resizer | |||
| generator-rn-toolbox | [![NPM downloa |
This file contains hidden or 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 {useEffect, useRef} from 'react'; | |
| import {FlatList} from 'react-native'; | |
| const scrollOffsets: {[key: string]: number} = {}; | |
| export const useRememberListScroll = <T>( | |
| listRef: React.RefObject<FlatList<T>>, | |
| rowId: string, | |
| ) => { | |
| const currentScrollOffset = useRef<number>(0); |
This file contains hidden or 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
| #!/usr/bin/env node | |
| const shell = require("shelljs"); | |
| const mapValues = require("lodash/mapValues"); | |
| const _ = require("lodash"); | |
| const DEBUG = false; | |
| const executeCommand = (command) => { | |
| return shell.exec(command, { silent: !DEBUG }).stdout; |
This file contains hidden or 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 { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; | |
| import { DatePicker, Picker, Form, TextInput } from 'react-native-form-idable'; | |
| import { Hoshi } from 'react-native-textinput-effects'; | |
| const styles = StyleSheet.create({ | |
| container: { | |
| flex: 1, | |
| paddingTop: 40, | |
| }, |
This file contains hidden or 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
| # Run this on https://www.walkhighlands.co.uk/fortwilliam/glencoe.shtml console for instance to show rating | |
| $('.walktable').find('a').each(function() { | |
| const $link = $(this) | |
| const link = $link.prop('href') | |
| const linkText = $link.text() | |
| $.get(link, (html) => { | |
| const rating = $(html).find('[itemprop=ratingValue]').text() | |
| $(`<span>${rating} - </span>`).insertBefore($link); | |
| }) |
Bump Android and iOS version name and/or version code in fastlane/.env.prod
- Run deployment script:
bundle exec fastlane ios deploy --env=prod - Go to iTunes Connect > Tab Activity > Wait for build to be processed. Alternatively, change the value of
skip_waiting_for_build_processingtotruein yourfastlane/Fastfileto be informed when it's done.
- Go to iTunes Connect > Tab Testflight > Internal testing, select version to test (answer no to the crypto question if needed)
This file contains hidden or 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 gm = require('gm').subClass({imageMagick: true}); | |
| const fs = require('fs-extra'); | |
| const path = require('path'); | |
| const PROJECT_ROOT = '/Users/almouro/bam/elsan-materniteam/Materniteam'; | |
| const IOS_ASSETS_FOLDER = 'ios/Materniteam/Images.xcassets/AppIcon.appiconset'; | |
| const ICON_SOURCE = './icon.png'; | |
| const iosSizes = [20, 29, 40, 60]; | |
| const iosMultipliers = [2, 3]; |
This file contains hidden or 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
| Fastlane with Cordova |
This file contains hidden or 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 joi = require('joi'); | |
| var schema = joi.object({ | |
| Formula: joi.object().keys({ | |
| Type: joi.alternatives().required() | |
| .when('Params.ShippingSourceType', { is: 'System', then: joi.string().valid('Export') }) | |
| .when('Params.ShippingDestinationType', { is: 'System', then: joi.string().valid('Import') }), | |
| Params: joi.object(), // or additional validation | |
| }), | |
| }); |
NewerOlder