react-native-tableview icon indicating copy to clipboard operation
react-native-tableview copied to clipboard

Need help in creating new component library

Open sureshsamanthapudi opened this issue 6 years ago • 1 comments

Hi,

This issue is not related to 'react-native-tableview'.
We are creating a new private component library for our organization. I tried the following:

  1. Component library itself as a separate project with react and react-native as peer dependencies in my project.
  2. But having just the components code in component library is not useful because we have to add new code or fixes and we have to run the story book(Because of peer dependencies could not be able run story book).

Could you please help me with the model I have to follow for creating a react native library?

Thank you in advance.

sureshsamanthapudi avatar Aug 25 '19 14:08 sureshsamanthapudi

You should have react and react-native as dev dependencies as well as peer dependencies. See https://github.com/callstack/react-native-paper/blob/master/package.json for example.

iRoachie avatar Aug 30 '19 08:08 iRoachie