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 {withAppBuildGradle} = require('@expo/config-plugins') | |
| /** | |
| * A Config Plugin to disable bundle compression in Android build.gradle. | |
| * This makes the Android app start faster - in our tests by 400ms! | |
| * @param {import('@expo/config-plugins').ConfigPlugin} config | |
| * @returns {import('@expo/config-plugins').ConfigPlugin} | |
| */ | |
| module.exports = function withNoBundleCompression(config) { | |
| return withAppBuildGradle(config, androidConfig => { |
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
| /** | |
| * Filters an array of objects using custom predicates. | |
| * | |
| * @param {Array} array: the array to filter | |
| * @param {Object} filters: an object with the filter criteria | |
| * @return {Array} | |
| */ | |
| function filterArray(array, filters) { | |
| const filterKeys = Object.keys(filters); | |
| return array.filter(item => { |