Fixing ‘resource android:attr/colorError not found’ Android build error
If you get AAPT: error: resource android:attr/colorError not found
in your React Native Android build, add the following
code into your android/build.gradle
, allprojects
section:
Amplify guest users with Cognito records
Many applications require unauthorized/guest user accounts with (probably limited) access to server resources.
Amplify allows guest access but what if you need full-featured Cognito records for such users? What if you would want them to be converted later to the full accounts and keep user preferences and other associated server resources?
Avoiding deep nested tree of React Context Providers
This article gives you a way to convert your tree of React Context Provider components into a flat structure.
Installing jekyll on MacOS 10.13 High Sierra
TL;DR
curl -L https://get.rvm.io | bash -s stable
rvm install ruby-2.6.3
rvm use ruby-2.6.3
sudo gem install jekyll
Unpacking Python list into multiple variables and a ‘catch-all’ list
TL;DR
a, *b, c = [1, 2, 3, 4, 5] # b gets [2, 3, 4]