Main Flashcards
RN has how many main threads?
Two?
JavaScript business logic
UI thread on native device
bridge (is this a thread)?
REVISIT
List the main three RN threads.
UI thread JavaScript thread (the business logic) the bridge (communication between UI & JS threads)
RN is ____ - threaded.
single
RN suffers in performance in apps that need to run ____ features ____ .
multiple
simultaneously
In RN apps, performance issues could arise since the single-threaded nature of it dictates that components have to ____ when another component is being rendered.
wait
The InteractionManger is used to prevent what from happening?
The UI thread dropping frames
The FlatList api ____ list view performance.
optimizes
React Native alternatives like Cordova run a single-page app inside of a ____ , whereas React Native uses ____ .
WebView (the mobile browser engine)
native UI modules
Three major differences from RN vs React for web:
RN doesn’t have HTML,
doesn’t have CSS,
routing is handled differently
JS runs on JavaScriptCore, instead of V8 engine
True or False: RN uses babel
true
RN uses ____ as its JavaScript enginel
JavaScriptCore
Name the three most common RN UI modules.
Image, Text, View
What is one method to use from the FlatList api that lets you optimize list performance if you know list item height ahead of time?
getItemLayout()
What is the RN equivalent of the React for web key prop that’s used for list items?
keyExtractor
What UI module do you use to get the height and width of the app window?
Dimensions