Chion82 / native-base-web

NativeBase for React Native Web. The missing piece of RN4WEB.
https://chion82.gitbooks.io/nativebase-for-web/content/
Apache License 2.0
73 stars 22 forks source link

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

Open flipflopapp opened 5 years ago

flipflopapp commented 5 years ago

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.