native-base-web icon indicating copy to clipboard operation
native-base-web copied to clipboard

Added support for native-base-shoutem-theme to native-base-web components

Open flipflopapp opened this issue 5 years ago • 0 comments

I have added support for native-base-shoutem-theme and recompiled the lib folder with the changes.

By comparing native-base and native-base-web, I saw that the support for native-base-shoutem-theme is missing. For instance, in file native-base/src/button.js; the following code is added to support shoutem-theme.

import { connectStyle } from "native-base-shoutem-theme";
...
// and at the end...
const StyledButton = connectStyle(
  "NativeBase.Button",
  {},
  mapPropsToStyleNames
)(Button);
export { StyledButton as Button };

The component file Components/Widgets/Button.js in 'native-base-web' is missing this connector.

I have added the missing connector in the pull request.

flipflopapp avatar Mar 30 '19 19:03 flipflopapp