Network

One of React Native's goals is to be a playground where we can experiment with different architectures and crazy ideas. Since browsers are not flexible enough, we had no choice but to reimplement the entire stack. In the places that we did not intend to change anything, we tried to be as faithful as possible to the browser APIs. The networking stack is a great example. Fetch fetch is a better networking API being worked on by the standards committee and is already available in Chrome. It is a

WebView#automaticallyAdjustContentInsets

automaticallyAdjustContentInsets bool

Image#style

style style Flexbox... ShadowPropTypesIOS#style... Transforms... backfaceVisibility enum('visible', 'hidden') backgroundColor color borderBottomLeftRadius number borderBottomRightRadius number borderColor color borderRadius number borderTopLeftRadius number borderTopRightRadius number borderWidth number opacity number overflow enum('visible', 'hidden') resizeMode Object.keys(ImageResizeMode) tintColor color Changes the color of all the non-transparent pixels to the tintColor. an

Navigator#replace()

replace(route) Replace the current scene with a new route.

Linking#openURL()

openURL(url) Try to open the given url with any of the installed apps. You can use other URLs, like a location (e.g. "geo:37.484847,-122.148386"), a contact, or any other URL that can be opened with the installed apps. NOTE: This method will fail if the system doesn't know how to open the specified URL. If you're passing in a non-http(s) URL, it's best to check {@code canOpenURL} first. NOTE: For web URLs, the protocol ("http://", "https://") must be set accordingly!

TouchableWithoutFeedback#hitSlop

hitSlop {top: number, left: number, bottom: number, right: number} This defines how far your touch can start away from the button. This is added to pressRetentionOffset when moving off of the button. NOTE The touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.

WebView#onError

onError function Invoked when load fails

ListViewDataSource#cloneWithRowsAndSections()

cloneWithRowsAndSections(dataBlob, sectionIdentities, rowIdentities) This performs the same function as the cloneWithRows function but here you also specify what your sectionIdentities are. If you don't care about sections you should safely be able to use cloneWithRows. sectionIdentities is an array of identifiers for sections. ie. ['s1', 's2', ...]. If not provided, it's assumed that the keys of dataBlob are the section identities. Note: this returns a new object!

View#onResponderMove

onResponderMove function

ToolbarAndroid#logo

logo optionalImageSource Sets the toolbar logo.