@poolse/react-native 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import * as ImagePicker from 'expo-image-picker';
7
7
  import * as DocumentPicker from 'expo-document-picker';
8
8
  import { manipulateAsync, SaveFormat } from 'expo-image-manipulator';
9
9
  import * as Clipboard from 'expo-clipboard';
10
- import Markdown from 'react-native-markdown-display';
10
+ import Markdown, { MarkdownIt } from 'react-native-markdown-display';
11
11
 
12
12
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
13
13
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -2611,6 +2611,7 @@ var styles14 = StyleSheet.create({
2611
2611
  borderRadius: 20
2612
2612
  }
2613
2613
  });
2614
+ var markdownit = MarkdownIt({ typographer: false, linkify: true });
2614
2615
  function renderMarkdown(body, args) {
2615
2616
  const baseText = {
2616
2617
  color: args.textColor,
@@ -2656,7 +2657,7 @@ function renderMarkdown(body, args) {
2656
2657
  opacity: 0.85
2657
2658
  }
2658
2659
  };
2659
- return createElement(Markdown, { style, onLinkPress: args.onLinkPress }, body);
2660
+ return createElement(Markdown, { style, markdownit, onLinkPress: args.onLinkPress }, body);
2660
2661
  }
2661
2662
  function MessageBubble({
2662
2663
  message,