From e428fb4a8b908bfca85b06264cb38cd1977c5e35 Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 14 Jun 2017 01:59:09 -0700 Subject: [PATCH] Fix typo Summary: Change word exmaple for example Fix a typo on the Docs Closes https://github.com/facebook/react-native/pull/14501 Differential Revision: D5242980 Pulled By: javache fbshipit-source-id: 0d394a5a552df9001729cd01453606a8711081e2 --- docs/CommunicationIOS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CommunicationIOS.md b/docs/CommunicationIOS.md index 3426bbcbe..704f63944 100644 --- a/docs/CommunicationIOS.md +++ b/docs/CommunicationIOS.md @@ -212,7 +212,7 @@ Let's look at an example. In the example we have a `FlexibleSizeExampleView` view that holds a root view. We create the root view, initialize it and set the delegate. The delegate will handle size updates. Then, we set the root view's size flexibility to `RCTRootViewSizeFlexibilityHeight`, which means that `rootViewDidChangeIntrinsicSize:` method will be called every time the React Native content changes its height. Finally, we set the root view's width and position. Note that we set there height as well, but it has no effect as we made the height RN-dependent. -You can checkout full source code of the exmaple [here](https://github.com/facebook/react-native/blob/master/RNTester/RNTester/NativeExampleViews/FlexibleSizeExampleView.m). +You can checkout full source code of the example [here](https://github.com/facebook/react-native/blob/master/RNTester/RNTester/NativeExampleViews/FlexibleSizeExampleView.m). It's fine to change root view's size flexibility mode dynamically. Changing flexibility mode of a root view will schedule a layout recalculation and the delegate `rootViewDidChangeIntrinsicSize:` method will be called once the content size is known.