import * as React from 'react'; import { BlueRain, BlueRainConsumer } from '@blueeast/bluerain-os'; import { style } from './style'; import AppCard from '../AppCard'; export type AppType = { iconUrl: string, name: string, slug: string, link: string, }; // get the locally stored image class SuccessComponent extends React.PureComponent<{ appsList: AppType[] }, { size: number }> { constructor(props: { appsList: any[] }) { super(props); this.state = { size: 160 }; } render() { const { appsList } = this.props; const onLayout: any = (all: any) => { this.setState({ size: all.nativeEvent.layout.width }); }; return ( {(BR: BlueRain) => ( { appsList.map((app) => ) } )} ); } } export default SuccessComponent;