Skip to content

borderwidth not showing in right side and bottom side in Table. #47

Description

@Jigs6720

Screenshot_1693480213
in the right side and bottom side border is not showing here is the code.

<RenderHTML
        contentWidth={width}
        source={{
          html: html,
        }}
        renderers={{ table: TableRenderer }}
        WebView={WebView}
        renderersProps={{
          table: {
            computeContainerHeight() {
              return null;
            },
            webViewProps: {
              style: {
                backgroundColor: "transparent",
                marginVertical: 10,
                alignItems: "center",
                borderWidth: 1,
                borderColor: "lightgray",
              },
              nestedScrollEnabled: true,
              scalesPageToFit: true,
              bounces: false,
            },
          },
          a: {
            onPress(event, url, htmlAttribs, target) {
              // Do stuff
              if (url) {
                openLink(url, colors.text, colors.background);
              }
            },
          },
        }}
        customHTMLElementModels={{
          table: tableModel
        }}
        systemFonts={[
          Typography.MuseoSansRegularText,
          Typography.MuseoSansBoldText,
        ]}
        enableCSSInlineProcessing={enableCSSInlineProcessing}
        baseStyle={contentHeight && { minHeight: contentHeight }}
        tagsStyles={{
          body: {
            // width: "96%",
            paddingHorizontal: 10,
            fontWeight: "400",
            fontFamily: Typography.MuseoSansRegularText,
            lineHeight: 24,
            alignSelf: "center",
            fontSize: 16,
            color: colors.text,
            ...bodyStyle,
          },
          p: {
            fontWeight: "400",
            fontFamily: Typography.MuseoSansRegularText,
            lineHeight: 24,
            fontSize: 16,
            color: colors.text,
            marginVertical: 0,
            ...paragraphStyle,
          },
          span: {
            fontWeight: "400",
            fontFamily: Typography.MuseoSansRegularText,
            lineHeight: 24,
            fontSize: 16,
            color: colors.text,
          },
          div: {
            fontWeight: "400",
            fontFamily: Typography.MuseoSansRegularText,
            lineHeight: 24,
            fontSize: 16,
            color: colors.text,
          },
          img: {
            width: imgWidth || "100%",
            resizeMode: "contain",
            alignItems: "center",
          },
          table: commonStyles.table(colors),
          tbody: commonStyles.tbody(colors),
          td: commonStyles.td(colors),
          tr: commonStyles.tr(colors),
          th: commonStyles.th(colors),
          thead: commonStyles.thead(colors),
          tbody: commonStyles.tbody(colors),
        }}
      />

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions