Skip to content

Commit d4f7e2e

Browse files
authored
Merge pull request #46 from mountHouli/feature/export-applyStyle
feature/export-applyStyle: Add to index.js and index.d.ts
2 parents 2389709 + 68d6c27 commit d4f7e2e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { MarkdownIt, Token } from 'markdown-it';
33
import { ComponentType, ReactNode } from 'react';
44
import { StyleSheet, View } from 'react-native';
55

6+
export function applyStyle(children: any[], styles: any, type: string): any;
7+
68
export function getUniqueID(): string;
79
export function openUrl(url: string): void;
810

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import React, { Component } from 'react';
66
import PropTypes from 'prop-types';
77
import { View } from 'react-native';
88
import { parser, stringToTokens } from './lib/parser';
9+
import applyStyle from './lib/util/applyStyle';
910
import getUniqueID from './lib/util/getUniqueID';
1011
import hasParents from './lib/util/hasParents';
1112
import openUrl from './lib/util/openUrl';
@@ -21,6 +22,7 @@ import { styles } from './lib/styles';
2122
*
2223
*/
2324
export {
25+
applyStyle,
2426
getUniqueID,
2527
openUrl,
2628
hasParents,

0 commit comments

Comments
 (0)