boolbase
Overview
Provides two basic functions, one that always returns true (trueFunc) and one that always returns false (falseFunc).
How to Install
ohpm install boolbase
For details, see Installing an OpenHarmony HAR.
How to Use
import { falseFunc, trueFunc } from 'boolbase';
@Entry
@Component
struct Index {
build() {
RelativeContainer() {
Column() {
Text("trueFunc: " + JSON.stringify(trueFunc()))
.fontSize(20)
Text("falseFunc: " + JSON.stringify(falseFunc()))
.fontSize(20)
}
}
.height('100%')
.width('100%')
}
}
Available APIs
- always returns true
trueFunc()
- always returns false
falseFunc()
Constraints
boolbase has been verified in the following version:
- DevEco Studio Version: 5.0.1 Release (5.0.5.310), OpenHarmony SDK: 13 (5.0.0(13))
- DevEco Studio Version: DevEco Studio 5.1.0 Canary1(5.1.0.229),OpenHarmony SDK:5.1.0.229 API16(5.1.0.46)
Directory Structure
|----boolbase
| |---- entry # Sample code
| |----src
| |----main
| |----ets
| |----pages
| |---- Index.ets
| |---- README.md # Readme
| |---- README_zh.md # Readme
How to Contribute
If you find any problem when using boolbase, submit an Issue or a PR.
License
This project is licensed under ISC.