All the core components accept a what? - ANS-style attribute or array of styles
Composite components are not backed by a native view, so you cannot call what? -
ANS-setNativeProps
For layout, what does React Native implement? - ANS-Flexbox
For static images, what keyword is needed? - ANS-require
How are animations started? - ANS-calling start()
How can animations be composed together? - ANS-parallel, sequence, stagger, delay
How do you create a background-image? - ANS-render whatever children you want
inside an image component
How do you enable debugging? - ANS-control + command + z
How do you render an image? - ANS-source attribute
If a lot of work is being done on the JS thread, and the cost to delay work during an
animation is too high, what should you do? - ANS-use LayoutAnimation, which
leverages Core Animation
If the View is responding, the following handler can be called if something else wants to
become responder? - ANS-onResponderTerminate
If the View is responding, the following handler can be called if the responder has been
taken from the View? - ANS-onResponderTerminate
If the View is responding, the following handler can be called if the user is moving their
finger? - ANS-onResponderMove
If the View is responding, the following handler can be called or is fired at the end of the
touch (e.g touchUp)? - ANS-onResponderRelease
, If the View wants to become a touch responder, what method asks does this view want
to become responder on the start of a touch? - ANS-onStartShouldSetResponder
If the View wants to become a touch responder, what method is called for every touch
move on the View when it is not the responder: does this view want to claim touch
responsiveness? - ANS-onMoveShouldSetResponder
If you are using immutable data structures with a ListView, how can you achieve high
performance? - ANS-rowHasChanged function as equality check
onStartShouldSetResponder and onMoveShouldSetResponder are called with what
kind of pattern? - ANS-bubbling, where the deepest node is called first
What animation component is for more granular and interactive control of specific
values? - ANS-Animated
What API is exposed to customize the UINavigationController? -
ANS-NavigatorSceneConfigs
What are some hacks around increasing ListView performance? - ANS-setting the
initialListSize to 1-3, the pageSize to 1 or more depending on how small views are,
scrollRenderAheadDistance specifies how early to start rendering rows before they
come on screen, removeClippedSubviews specifies offscreen child views
(overflow:hidden) are removed from their native backing when offscreen.
What are the animated component types? - ANS-View, Text, Image
What are the animated types? - ANS-spring, decay, timing
What are the core components? - ANS-Text, Image, View, TextInput, ListView
What are the two animated value types? - ANS-Value, ValueXY
What can you provide as a suffix to an image to match screen density? - ANS-@2x,
@3x
What component allows the user to enter text? - ANS-TextInput
What component allows you to globally configure create and update animations that will
be used for all views in the next render/layout cycle? - ANS-LayoutAnimation