1import { hilog } from '@kit.PerformanceAnalysisKit';
2import testNapi from 'libentry.so';
3
4@Entry
5@Component
6struct Index {
7  @State message: string = 'Hello World';
8
9  build() {
10    Row() {
11      Column() {
12        Text(this.message)
13          .fontSize(50)
14          .fontWeight(FontWeight.Bold)
15          .onClick(() => {
16            hilog.info(0x0000, 'testTag', 'Test NAPI 2 + 3 = %{public}d', testNapi.add(2, 3));
17          })
18      }
19      .width('100%')
20    }
21    .height('100%')
22  }
23}
24