@@ -872,19 +872,19 @@ Rules are used to specify how you want certain elements to be displayed. The exi
872
872
import React from ' react' ;
873
873
import { SafeAreaView , ScrollView , StatusBar , Text } from ' react-native' ;
874
874
875
- import Markdown , { getUniqueID } from ' react-native-markdown-display' ;
875
+ import Markdown from ' react-native-markdown-display' ;
876
876
877
877
const rules = {
878
878
heading1 : (node , children , parent , styles ) =>
879
- < Text key= {getUniqueID () } style= {[styles .heading , styles .heading1 ]}>
879
+ < Text key= {node . key } style= {[styles .heading , styles .heading1 ]}>
880
880
>> H1 TEXT HERE >> " {children}"
881
881
< / Text > ,
882
882
heading2 : (node , children , parent , styles ) =>
883
- < Text key= {getUniqueID () } style= {[styles .heading , styles .heading2 ]}>
883
+ < Text key= {node . key } style= {[styles .heading , styles .heading2 ]}>
884
884
>> H2 TEXT HERE >> " {children}"
885
885
< / Text > ,
886
886
heading3 : (node , children , parent , styles ) =>
887
- < Text key= {getUniqueID () } style= {[styles .heading , styles .heading3 ]}>
887
+ < Text key= {node . key } style= {[styles .heading , styles .heading3 ]}>
888
888
>> H3 TEXT HERE >> " {children}"
889
889
< / Text > ,
890
890
};
0 commit comments