Module FlatList-BsReactNative.CreateComponent
Parameters
Impl : BsReactNative.View.Impl
Signature
let scrollToEnd : ReasonReact.reactRef => animated:bool => unit;
let scrollToIndex : ReasonReact.reactRef => index:int => ?animated:bool => ?viewOffset:int => ?viewPosition:int => unit => unit;
let scrollToItem : ReasonReact.reactRef => item:'item => ?animated:bool => ?viewPosition:int => unit => unit;
let scrollToOffset : ReasonReact.reactRef => ?offset:float => ?animated:bool => unit => unit;
external recordInteraction : ReasonReact.reactRef => unit = "BS:4.0.5„•¦¾° B‘@@E•À1recordInteraction@@@""";
let renderItem : (renderBag('item) => ReasonReact.reactElement) => renderItem('item);
type separatorComponent('item)
;
type separatorProps('item)
=
{
highlighted : bool,
leadingItem : option('item),
}
;
let separatorComponent : (separatorProps('item) => ReasonReact.reactElement) => separatorComponent('item);
let make : data:array('item) => renderItem:renderItem('item) => keyExtractor:('item => int => string) => ?itemSeparatorComponent:separatorComponent('item) => ?bounces:bool => ?listFooterComponent:ReasonReact.reactElement => ?listHeaderComponent:ReasonReact.reactElement => ?columnWrapperStyle:BsReactNative.Style.t => ?extraData:'any => ?getItemLayout:(option(array('item)) => int => Js.t({. length : int, offset : int, index : int, })) => ?horizontal:bool => ?initialNumToRender:int => ?initialScrollIndex:int => ?inverted:bool => ?numColumns:'int => ?onEndReached:(Js.t({. distanceFromEnd : float, }) => unit) => ?onEndReachedThreshold:float => ?onRefresh:(unit => unit) => ?onViewableItemsChanged:Js.t({. viewableItems : array(Js.t({. item : 'item, key : string, index : Js.undefined(int), isViewable : bool, section : Js.t({. }), })), changed : array(Js.t({. item : 'item, key : string, index : Js.undefined(int), isViewable : bool, section : Js.t({. }), })), }) => ?overScrollMode:[ `auto | `always | `never ] => ?pagingEnabled:bool => ?refreshing:bool => ?removeClippedSubviews:bool => ?scrollEnabled:bool => ?showsHorizontalScrollIndicator:bool => ?showsVerticalScrollIndicator:bool => ?windowSize:int => ?maxToRenderPerBatch:int => ?viewabilityConfig:Js.t({. }) => ?onScroll:(BsReactNative.RNEvent.NativeScrollEvent.t => unit) => ?style:BsReactNative.Style.t => array(ReasonReact.reactElement) => ReasonReact.component(ReasonReact.stateless, ReasonReact.noRetainedProps, unit);