Skip to content

Commit 3348b13

Browse files
authored
Merge pull request #103 from abirchall/style_code_monospace
nice one
2 parents bd1b74a + 5f6eba5 commit 3348b13

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/lib/styles.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,20 +131,44 @@ export const styles = {
131131
backgroundColor: '#f5f5f5',
132132
padding: 10,
133133
borderRadius: 4,
134+
...Platform.select({
135+
["ios"]: {
136+
fontFamily: "Courier",
137+
},
138+
["android"]: {
139+
fontFamily: "monospace",
140+
},
141+
}),
134142
},
135143
code_block: {
136144
borderWidth: 1,
137145
borderColor: '#CCCCCC',
138146
backgroundColor: '#f5f5f5',
139147
padding: 10,
140148
borderRadius: 4,
149+
...Platform.select({
150+
["ios"]: {
151+
fontFamily: "Courier",
152+
},
153+
["android"]: {
154+
fontFamily: "monospace",
155+
},
156+
}),
141157
},
142158
fence: {
143159
borderWidth: 1,
144160
borderColor: '#CCCCCC',
145161
backgroundColor: '#f5f5f5',
146162
padding: 10,
147163
borderRadius: 4,
164+
...Platform.select({
165+
["ios"]: {
166+
fontFamily: "Courier",
167+
},
168+
["android"]: {
169+
fontFamily: "monospace",
170+
},
171+
}),
148172
},
149173

150174
// Tables

0 commit comments

Comments
 (0)