diff --git a/docs/next/native-modules-android.html b/docs/next/native-modules-android.html index 5707be35cfa..cc7fedd5596 100644 --- a/docs/next/native-modules-android.html +++ b/docs/next/native-modules-android.html @@ -100,7 +100,7 @@ private static final String DURATION_SHORT_KEY = "SHORT"; private static final String DURATION_LONG_KEY = "LONG"; - ToastModule(ReactApplicationContext reactContext) { + public ToastModule(ReactApplicationContext reactContext) { super(reactContext); } } @@ -401,7 +401,7 @@ ToastExample.} }; - ImagePickerModule(ReactApplicationContext reactContext) { + public ImagePickerModule(ReactApplicationContext reactContext) { super(reactContext); // Add the listener for `onActivityResult` diff --git a/docs/next/native-modules-android/index.html b/docs/next/native-modules-android/index.html index 5707be35cfa..cc7fedd5596 100644 --- a/docs/next/native-modules-android/index.html +++ b/docs/next/native-modules-android/index.html @@ -100,7 +100,7 @@ private static final String DURATION_SHORT_KEY = "SHORT"; private static final String DURATION_LONG_KEY = "LONG"; - ToastModule(ReactApplicationContext reactContext) { + public ToastModule(ReactApplicationContext reactContext) { super(reactContext); } } @@ -401,7 +401,7 @@ ToastExample.} }; - ImagePickerModule(ReactApplicationContext reactContext) { + public ImagePickerModule(ReactApplicationContext reactContext) { super(reactContext); // Add the listener for `onActivityResult` diff --git a/docs/next/sectionlist.html b/docs/next/sectionlist.html index 09c0f64602e..754690a73e1 100644 --- a/docs/next/sectionlist.html +++ b/docs/next/sectionlist.html @@ -124,26 +124,26 @@
Required props:
Optional props:
extraDatainitialNumToRenderinvertedItemSeparatorComponentkeyExtractoronEndReachedextraDataItemSeparatorComponentinvertedListFooterComponentlegacyImplementationListEmptyComponentListFooterComponentListHeaderComponentonEndReachedonEndReachedThresholdonRefreshonViewableItemsChangedrefreshingremoveClippedSubviewsListHeaderComponentrenderSectionFooterrenderSectionHeaderSectionSeparatorComponentflashScrollIndicatorsrecordInteractionscrollToLocationrecordInteractionflashScrollIndicatorssectionsThe actual data to render, akin to the data prop in FlatList.
| Type | Required |
|---|---|
| array of Sections | Yes |
initialNumToRenderHow many items to render in the initial batch. This should be enough to fill the screen but not much more. Note these items will never be unmounted as part of the windowed rendering in order to improve perceived performance of scroll-to-top actions.
+| Type | Required |
|---|---|
| number | Yes |
keyExtractorUsed to extract a unique key for a given item at the specified index. Key is used for caching and as the React key to track item re-ordering. The default extractor checks item.key, then falls back to using the index, like React does. Note that this sets keys for each item, but each overall section still needs its own key.
| Type | Required |
|---|---|
| (item: Item, index: number) => string | Yes |
renderItemDefault renderer for every item in every section. Can be over-ridden on a per-section basis. Should return a React element.
| Type | Required |
|---|---|
| array of Sections | Yes |
| [(info: {distanceFromEnd: number}) => void] | No |
initialNumToRenderHow many items to render in the initial batch. This should be enough to fill the screen but not much more. Note these items will never be unmounted as part of the windowed rendering in order to improve perceived performance of scroll-to-top actions.
+ItemSeparatorComponentRendered in between each item, but not at the top or bottom. By default, highlighted, section, and [leading/trailing][Item/Section] props are provided. renderItem provides separators.highlight/unhighlight which will update the highlighted prop, but you can also add custom props with separators.updateProps.
| Type | Required |
|---|---|
| number | Yes |
| [component, function, element] | No |
ItemSeparatorComponentRendered in between each item, but not at the top or bottom. By default, highlighted, section, and [leading/trailing][Item/Section] props are provided. renderItem provides separators.highlight/unhighlight which will update the highlighted prop, but you can also add custom props with separators.updateProps.
ListFooterComponentRendered at the very end of the list. Can be a React Component Class, a render function, or a rendered element.
| Type | Required |
|---|
keyExtractorUsed to extract a unique key for a given item at the specified index. Key is used for caching and as the React key to track item re-ordering. The default extractor checks item.key, then falls back to using the index, like React does. Note that this sets keys for each item, but each overall section still needs its own key.
| Type | Required |
|---|---|
| (item: Item, index: number) => string | Yes |
legacyImplementationThe legacy implementation is no longer supported.
| Type | Required |
|---|
ListFooterComponentRendered at the very end of the list. Can be a React Component Class, a render function, or a rendered element.
-| Type | Required |
|---|---|
| [component, function, element] | No |
ListHeaderComponentRendered at the very beginning of the list. Can be a React Component Class, a render function, or a rendered element.
-| Type | Required |
|---|---|
| component, function, element | No |
onEndReachedCalled once when the scroll position gets within onEndReachedThreshold of the rendered content.
| Type | Required |
|---|---|
| [(info: {distanceFromEnd: number}) => void] | No |
onEndReachedThresholdHow far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.
ListHeaderComponentRendered at the very beginning of the list. Can be a React Component Class, a render function, or a rendered element.
+| Type | Required |
|---|---|
| component, function, element | No |
renderSectionFooterRendered at the bottom of each section.
| Platfrom |
|---|
| iOS |
An object that identifies the data to be rendered for a given section.
diff --git a/docs/next/sectionlist/index.html b/docs/next/sectionlist/index.html index 09c0f64602e..754690a73e1 100644 --- a/docs/next/sectionlist/index.html +++ b/docs/next/sectionlist/index.html @@ -124,26 +124,26 @@Required props:
Optional props:
extraDatainitialNumToRenderinvertedItemSeparatorComponentkeyExtractoronEndReachedextraDataItemSeparatorComponentinvertedListFooterComponentlegacyImplementationListEmptyComponentListFooterComponentListHeaderComponentonEndReachedonEndReachedThresholdonRefreshonViewableItemsChangedrefreshingremoveClippedSubviewsListHeaderComponentrenderSectionFooterrenderSectionHeaderSectionSeparatorComponentflashScrollIndicatorsrecordInteractionscrollToLocationrecordInteractionflashScrollIndicatorssectionsThe actual data to render, akin to the data prop in FlatList.
| Type | Required |
|---|---|
| array of Sections | Yes |
initialNumToRenderHow many items to render in the initial batch. This should be enough to fill the screen but not much more. Note these items will never be unmounted as part of the windowed rendering in order to improve perceived performance of scroll-to-top actions.
+| Type | Required |
|---|---|
| number | Yes |
keyExtractorUsed to extract a unique key for a given item at the specified index. Key is used for caching and as the React key to track item re-ordering. The default extractor checks item.key, then falls back to using the index, like React does. Note that this sets keys for each item, but each overall section still needs its own key.
| Type | Required |
|---|---|
| (item: Item, index: number) => string | Yes |
renderItemDefault renderer for every item in every section. Can be over-ridden on a per-section basis. Should return a React element.
| Type | Required |
|---|---|
| array of Sections | Yes |
| [(info: {distanceFromEnd: number}) => void] | No |
initialNumToRenderHow many items to render in the initial batch. This should be enough to fill the screen but not much more. Note these items will never be unmounted as part of the windowed rendering in order to improve perceived performance of scroll-to-top actions.
+ItemSeparatorComponentRendered in between each item, but not at the top or bottom. By default, highlighted, section, and [leading/trailing][Item/Section] props are provided. renderItem provides separators.highlight/unhighlight which will update the highlighted prop, but you can also add custom props with separators.updateProps.
| Type | Required |
|---|---|
| number | Yes |
| [component, function, element] | No |
ItemSeparatorComponentRendered in between each item, but not at the top or bottom. By default, highlighted, section, and [leading/trailing][Item/Section] props are provided. renderItem provides separators.highlight/unhighlight which will update the highlighted prop, but you can also add custom props with separators.updateProps.
ListFooterComponentRendered at the very end of the list. Can be a React Component Class, a render function, or a rendered element.
| Type | Required |
|---|
keyExtractorUsed to extract a unique key for a given item at the specified index. Key is used for caching and as the React key to track item re-ordering. The default extractor checks item.key, then falls back to using the index, like React does. Note that this sets keys for each item, but each overall section still needs its own key.
| Type | Required |
|---|---|
| (item: Item, index: number) => string | Yes |
legacyImplementationThe legacy implementation is no longer supported.
| Type | Required |
|---|
ListFooterComponentRendered at the very end of the list. Can be a React Component Class, a render function, or a rendered element.
-| Type | Required |
|---|---|
| [component, function, element] | No |
ListHeaderComponentRendered at the very beginning of the list. Can be a React Component Class, a render function, or a rendered element.
-| Type | Required |
|---|---|
| component, function, element | No |
onEndReachedCalled once when the scroll position gets within onEndReachedThreshold of the rendered content.
| Type | Required |
|---|---|
| [(info: {distanceFromEnd: number}) => void] | No |
onEndReachedThresholdHow far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.
ListHeaderComponentRendered at the very beginning of the list. Can be a React Component Class, a render function, or a rendered element.
+| Type | Required |
|---|---|
| component, function, element | No |
renderSectionFooterRendered at the bottom of each section.
| Platfrom |
|---|
| iOS |
An object that identifies the data to be rendered for a given section.