verdnatura-chat/storybook/stories/Avatar.js

22 lines
640 B
JavaScript
Raw Normal View History

import React from 'react';
import { ScrollView } from 'react-native';
import { Provider } from 'react-redux';
import { createStore, combineReducers } from 'redux';
2017-09-01 20:20:34 +00:00
import Avatar from '../../app/containers/Avatar';
const reducers = combineReducers({ settings: () => ({}) });
const store = createStore(reducers);
const baseUrl = 'baseUrl';
export default (
<Provider store={store}>
<ScrollView>
<Avatar text='test' baseUrl={baseUrl} />
<Avatar size={40} text='aa' baseUrl={baseUrl} />
<Avatar size={30} text='bb' baseUrl={baseUrl} />
<Avatar text='test' baseUrl={baseUrl} borderRadius={2} />
</ScrollView>
</Provider>
);