Updated May 21, 2018
React Native Animated Answer Bar
In this video we’ll learn how to get the application running on our machine.
CODE: https://github.com/HandlebarLabs/react-native-animated-answer-bar
In this video we’ll build the initial QuestionRow component.
In this video we’ll set the foundation for everything we’ll build on top of - the bar background. This sets the max width of a bar (100% of answers) and sets the base styles we’ll build on top of.
In this video we’ll build the different answer overlay bars for our component representing the different states (correct answer, user answer, incorrect answer & wasn’t user answer).
In this video we’ll learn how to measure the width of the full bar (so it works on variable screen sizes) so that, based on the percentage of answers, we can create answer bars that fill up the correct percentage of the full bar.
In this video we’ll use Animated.timing to animate the answer bar to the correct width.
CODE: https://github.com/HandlebarLabs/react-native-animated-answer-bar/compare/measure-element...animated
In this video we’ll use useNativeDriver to allow animations to happen off of the JavaScript thread - reducing the likelihood of jittering animations.
CODE: https://github.com/HandlebarLabs/react-native-animated-answer-bar/compare/animated...native-driver