Comments (11)
img tag is not working inside table tag. Could you please fix this issue
from plugins.
@shalinivathra Please provide a reproduction to help me help you! In my experience, images inside tables do work, provided of course that URLs are not relatives. Best to follow the official templates.
from plugins.
<table
border="1"
cellpadding="1"
cellspacing="0"
style="border-collapse: collapse; width: 100%"
>
<tbody>
<tr>
<td style="width: 124px">
<p style="text-align: center">
<span style="font-family: Arial, Helvetica, sans-serif"
><img
alt=""
src="file:////data/user/0/com.android.sampleapp/files/TEST/Test.war/Image/logo.png"
/></span>
</p>
</td>
<td style="text-align: center; vertical-align: middle; width: 1052px">
<p>
<span style="font-size: 22px"
><span style="font-family: Arial, Helvetica, sans-serif"
><span style="color: #000080"
><strong>Title / DocumentId</strong></span
></span
></span
>
</p>
</td>
<td style="white-space: nowrap; width: 194px">
<p>
<span style="font-family: Arial, Helvetica, sans-serif"
><span style="font-size: 14px">Version: </span></span
>
</p>
<p>
<span style="font-family: Arial, Helvetica, sans-serif"
><span style="font-size: 14px"
>Approved By: Manager
</span></span
>
</p>
</td>
</tr>
</tbody>
</table>
from plugins.
Here first column is logo .. in react-native mobile app img tag inside table is not working. But out of table view img is showing
from plugins.
Could you please help me for this
from plugins.
@shalinivathra To help you, I need a complete reproduction! I suggest you read this to get a hint on what I mean by that: https://github.com/archriss/react-native-render-html/blob/master/CONTRIBUTING.adoc#submitting-a-bug
I should add a contribution guide to this repository though.
from plugins.
@shalinivathra I edited your example to add syntax highlight in markdown... It looks like you are attempting to load a local file.
Local assets are not supported officially by react-native-webview, see for reference react-native-webview/react-native-webview#1413 and https://github.com/react-native-community/react-native-webview/blob/master/docs/Guide.md#loading-local-html-files.
I suggest you use a base64 data-uri instead. Closing since this is an upstream limitation, but I should add a warning in the readme.
from plugins.
Hi,
But image loading from local path outside table tag. its not loading only inside table tag. If Local assets are not supported officially by react-native-webview, how its loading outside table tag?.. kindly advise
from plugins.
@shalinivathra react-native-webview and react-native-render-html are two distinct packages!
from plugins.
ok, so its not possible load local image inside table right?..
from plugins.
@shalinivathra Yes ... react-native-render-html purpose is to transform HTML to a tree of native components, while react-native-webview renders a full DOM with a web engine, these are two very different approaches. Because React Native doesn't offer a layout algorithm to display table and / or grid views, the only way to render HTML tables is with WebView, hence the hybrid approach. But this comes with the WebView own limitations ... If you want to dig on your own and see if there is any way to use local assets with react-native-webview, you're welcome to do so and use webViewProps
to makeTableRenderer
config object.
EDIT: if you find something, it would be very nice to report it here so that I can hint users with your workaround :-)
from plugins.
Related Issues (20)
- Works fine for iOS but breaking in PWA HOT 9
- Are the table heights synchronized? If they are, how to disable syncing? HOT 6
- [table-plugin] Set text-align in tableStyleSpecs HOT 3
- undefinded is not a function (near '...(0,_reactNativeRenderHtml.domNodeToHTMLString)...') HOT 3
- i got error on back press please resolve it, thanks HOT 2
- If you get an error, read this first
- [iframe] Video always autoplay. How to disable autoplay? HOT 1
- [iframe] "scalesPageToFit=true" not zooming out HOT 5
- [heuristic-table-plugin]table-row/collum styling HOT 4
- [iframe-plugin] Content doesn't scale to fit if the container has some padding HOT 5
- Table not showing HOT 2
- [heuristic-table-plugin] forceStretch causes crash HOT 4
- [iframe-plugin] Add an option to add headers to the webview HOT 2
- [iframe-plugin] html string with iframe, iframe will not work HOT 8
- [heuristic-table-plugin] Text not showing when using tableRenderers
- [table-plugin] Android app (expo go and production) crashes for certain html content HOT 2
- [iframe-plugin] Crashes on Android when using certain content. HOT 4
- [iframe-plugin] html string with iframe, iframe will not work. Tried the solution in issue #41 but the app crashes
- borderwidth not showing in right side and bottom side in Table. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugins.