-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.tsx
More file actions
37 lines (36 loc) · 1.01 KB
/
App.tsx
File metadata and controls
37 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import { View, Text } from 'react-native';
import Barcode from './dist';
export default function App() {
return (
<View>
<View style={{width:"100%", height:100, paddingTop:40}}>
<Text style={{fontSize:32, textAlign: "center"}}>{"Welcome to local development!"}</Text>
</View>
<Barcode
marginTop={20}
marginLeft={20}
value="1234567890128"
options={{
format: 'EAN13',
width: 2,
height: 50,
background: 'white',
color: 'black',
displayValue: true,
font: 'Arial',
fontSize: 20,
fontStyle: 'normal',
fontWeight: 'normal',
textAlign: 'center',
textMargin: 10,
textColor: 'black',
lastChar: true,
}}
/>
<View style={{width:"100%", height:100, paddingTop:40}}>
<Text style={{fontSize:32, textAlign: "center"}}>{"Welcome to local development!"}</Text>
</View>
</View>
);
}