Skip to content

Instantly share code, notes, and snippets.

View alDuncanson's full-sized avatar

Al Duncanson alDuncanson

View GitHub Profile

Here are the best practices for Kyros team

React Native - New Projects

While trying to run the app in release mode on Android, there are potential issue you can run into:

If you see this error: AAPT: error: resource android:attr/colorError not found. follow this post and add this to your android build.gradle file:

subprojects {
    afterEvaluate {

project ->

@alDuncanson
alDuncanson / index.js
Last active March 29, 2022 20:38
Get array of years up until current year (ex. yearsAgo(5) => [2018, 2019, 2020, 2021, 2022])
const yearsAgo = year => Array.from([...Array(year)].fill(new Date().getFullYear()), (value, index) => value - index).reverse()