narcello / react-avatar-firebase

:raising_hand: Easily Avatar on Firebase Storage
MIT License
5 stars 2 forks source link

Change props way #19

Open narcello opened 5 years ago

narcello commented 5 years ago

Pass config object to RAF from parent app, and read from props.config on module

let config = {
  pathToStorage: '',
  imageSrc: null,
  handleGetImage: () => {},
  animationTime: '0.3s',
  size: '128px',
  borderColor: '#e2e2e2',
  borderOpacity: 1,
  readOnly: false,
  storage: {}
}