You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReactfrom"react";import{Box}from"./Box";import{Color}from"./Common";import{ErrorBoundary}from"./ErrorBoundary";// import {KeyboardAccessoryNavigation} from "react-native-keyboard-accessory";import{Spinner}from"./Spinner";import{Unifier}from"./Unifier";import{FlatList}from"./FlatList";import{ListRenderItemInfo}from"react-native";interfaceSplitPageProps{// TODO: figure out navigation
navigation: any;loading?: boolean;color?: Color;keyboardOffset?: number;rightButton?: string;rightButtonOnClick?: ()=>void;renderListViewItem: (itemInfo: ListRenderItemInfo<any>)=>React.ReactElement|null;renderListViewHeader?: ()=>React.ReactElement|null;
listViewData: any[];listViewExtraData?: any;}interfaceSplitPageState{}// A component for rendering a list on one side and a details view on the right for large screens,// and a scrollable list where clicking an item takes you the details view.exportclassSplitPageextendsReact.Component<SplitPageProps,SplitPageState>{actionSheetRef: React.RefObject<any>=React.createRef();render(){return(<ErrorBoundary><BoxavoidKeyboard={true}keyboardOffset={this.props.keyboardOffset}display="flex"width="100%"height="100%"flex="grow"direction="row"color={this.props.color||"lightGray"}>{this.props.loading===true&&(<Spinnersize="md"color={Unifier.theme.darkGrayasany}/>)}{/* <KeyboardAccessoryNavigation avoidKeyboard doneButton={true} nextButton={true} previousButton={true} /> */}{/* TODO: render this only for small sizes */}<Boxwidth={300}maxWidth={300}flex="shrink"direction="column"scroll={true}>{this.props.renderListViewHeader&&this.props.renderListViewHeader()}<FlatListdata={this.props.listViewData}renderItem={this.props.renderListViewItem}keyExtractor={(item)=>item.id}extraData={this.props.listViewExtraData}/></Box><Boxflex="grow"padding={2}>{this.props.children}</Box></Box></ErrorBoundary>);}}
67e41971bb3cef70d08bddd18d047e31d8778fa1
The text was updated successfully, but these errors were encountered:
figure out navigation
and a scrollable list where clicking an item takes you the details view.
react-unifier/src/SplitPage.tsx
Line 12 in ab36212
67e41971bb3cef70d08bddd18d047e31d8778fa1
The text was updated successfully, but these errors were encountered: