File tree Expand file tree Collapse file tree
android/src/main/java/com/swmansion/enriched/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ class EnrichedSpanState(
311311 val activeStyles =
312312 listOfNotNull(
313313 if (boldStart != null ) EnrichedSpans .BOLD else null ,
314+ if (colorStart != null ) EnrichedSpans .COLOR else null ,
314315 if (italicStart != null ) EnrichedSpans .ITALIC else null ,
315316 if (underlineStart != null ) EnrichedSpans .UNDERLINE else null ,
316317 if (strikethroughStart != null ) EnrichedSpans .STRIKETHROUGH else null ,
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ const DEFAULT_STYLES: StylesState = {
6767 mention : DEFAULT_STYLE_STATE ,
6868} ;
6969
70+ const PRIMARY_COLOR = '#000000' ;
71+
7072const DEFAULT_LINK_STATE = {
7173 text : '' ,
7274 url : '' ,
@@ -514,6 +516,7 @@ const styles = StyleSheet.create({
514516 fontFamily : 'Nunito-Regular' ,
515517 paddingVertical : 12 ,
516518 paddingHorizontal : 14 ,
519+ color : PRIMARY_COLOR ,
517520 } ,
518521 scrollPlaceholder : {
519522 marginTop : 24 ,
You can’t perform that action at this time.
0 commit comments