React Native
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
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Hkane. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.