Skip to content

Commit 7864ef5

Browse files
committed
fixbug:all->[demo]->Rjdd-3923->【TF2/DS2】【React Native】进入测试APK,选择print Self Checking测试,切换语言在切换回来,APK 闪退
Rjdd-3924->【TF2/DS2】【React Native】应用缺少单行走纸,多行走纸测试项 Rjdd-3928->【TF2/DS2】【React Native】测试print barCode 条码设置项缺少 解决方案:NA 影响范围:all 关联工单:NA 更新版本:NA
1 parent bdc5843 commit 7864ef5

1 file changed

Lines changed: 39 additions & 13 deletions

File tree

example/src/views/v2/index.tsx

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -496,19 +496,23 @@ export default function NewHome({
496496
<Col span={12}>
497497
<Text
498498
style={styles.item}
499-
onPress={async () => {
500-
await PrinterImin.printBarCode(
501-
IminBarcodeType.jan13,
502-
'0123456789012',
503-
{
504-
align: IminPrintAlign.center,
505-
position: IminBarcodeTextPos.aboveText,
506-
width: 400,
507-
height: 50,
508-
}
509-
);
510-
await PrinterImin.printAndFeedPaper(100);
511-
}}
499+
500+
onPress={() => {
501+
navigation.navigate('PrintBarCode');
502+
}}
503+
// onPress={async () => {
504+
// await PrinterImin.printBarCode(
505+
// IminBarcodeType.jan13,
506+
// '0123456789012',
507+
// {
508+
// align: IminPrintAlign.center,
509+
// position: IminBarcodeTextPos.aboveText,
510+
// width: 400,
511+
// height: 50,
512+
// }
513+
// );
514+
// await PrinterImin.printAndFeedPaper(100);
515+
// }}
512516
>
513517
printBarCode
514518
</Text>
@@ -544,6 +548,28 @@ export default function NewHome({
544548
transaction printing
545549
</Text>
546550
</Col>
551+
<Col span={12}>
552+
<Text
553+
style={styles.item}
554+
onPress={async () => {
555+
await PrinterImin.printAndFeedPaper(70);
556+
}}
557+
>
558+
printAndFeedPaper
559+
</Text>
560+
</Col>
561+
562+
<Col span={12}>
563+
<Text
564+
style={styles.item}
565+
onPress={async () => {
566+
await PrinterImin.printAndLineFeed();
567+
}}
568+
>
569+
printAndLineFeed
570+
</Text>
571+
</Col>
572+
547573
</Row>
548574
</Card>
549575
</Space>

0 commit comments

Comments
 (0)