P
P
pLavrenov2020-02-27 17:22:56
Android
pLavrenov, 2020-02-27 17:22:56

In what form should the text of the article be stored in the database and sent to the mobile application?

Actually a question.

In what form to add, store and give data of large articles for a mobile application. Provided that the text of the article consists not only of a line with text, but of different blocks such as image titles, and is filled out from a regular text editor in html form.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Alexandrovich, 2020-02-27
@RomReed

Alternatively, you can try doing this

import React, { Component } from 'react';
import { WebView } from 'react-native-webview';

class MyInlineWeb extends Component {
  render() {
    return (
      <WebView
        originWhitelist={['*']}
        source={{ html: '<h1>Hello world</h1>' }}
      />
    );
  }
}

but as for me, it’s more correct both in terms of optimization and implementation separately from the database to take a clock and separately images and display them normally in the application using simple components

D
Dmitry Sviridov, 2020-02-27
@dimuska139

Isn't it an option to use a block editor like EditorJS, store, respectively, the text of articles in json in the database and give it to the application?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question