@@ -872,19 +872,19 @@ Rules are used to specify how you want certain elements to be displayed. The exi
872872import React from ' react' ;
873873import { SafeAreaView , ScrollView , StatusBar , Text } from ' react-native' ;
874874
875- import Markdown , { getUniqueID } from ' react-native-markdown-display' ;
875+ import Markdown from ' react-native-markdown-display' ;
876876
877877const rules = {
878878 heading1 : (node , children , parent , styles ) =>
879- < Text key= {getUniqueID () } style= {[styles .heading , styles .heading1 ]}>
879+ < Text key= {node . key } style= {[styles .heading , styles .heading1 ]}>
880880 >> H1 TEXT HERE >> " {children}"
881881 < / Text > ,
882882 heading2 : (node , children , parent , styles ) =>
883- < Text key= {getUniqueID () } style= {[styles .heading , styles .heading2 ]}>
883+ < Text key= {node . key } style= {[styles .heading , styles .heading2 ]}>
884884 >> H2 TEXT HERE >> " {children}"
885885 < / Text > ,
886886 heading3 : (node , children , parent , styles ) =>
887- < Text key= {getUniqueID () } style= {[styles .heading , styles .heading3 ]}>
887+ < Text key= {node . key } style= {[styles .heading , styles .heading3 ]}>
888888 >> H3 TEXT HERE >> " {children}"
889889 < / Text > ,
890890};
0 commit comments