An open API service indexing awesome lists of open source software.

https://github.com/rintoj/native-x-text


https://github.com/rintoj/native-x-text

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# native-x-text

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

This component adds space between to other components

## Install

### Yarn

```sh
yarn add native-x-text
```

### NPM

```sh
npm install native-x-text
```

## Usage

```tsx
import { Text } from 'native-x-text'

function MyComponent() {
return (

...

Header 1


Header 2


Header 3

Body Text
Secondary Text
Caption
Footer
...

)
}
```

## Style Inheritance

```tsx

Hello, world!

```

The text "world!" will inherit all properties of the parent "Hello,"

## API

| Property | Default Value | Usage |
| ---------------------- | ------------- | -------------------------------------------------------------------------- |
| fill?: boolean | false | Fill container or available space |
| bold?: boolean | false | Show text in bold |
| semiBold?: boolean | false | Show text in semi-bold (works only if bold is set to false) |
| thin?: boolean | false | Show text in think font (works only if bold and semiBold are set to false) |
| italic?: boolean | false | Show text in italic |
| alignLeft?: boolean | false | Align left |
| alignCenter?: boolean | false | Align center |
| alignRight?: boolean | false | Align right |
| children?: string | | Content |
| upperCase?: boolean | false | Show content in upper case |
| style?: TextStyle | | Additional style |
| numberOfLines?: number | | Total number of lines to show |
| onPress?: () => void | | Callback on tap |

## Automatic Release

Here is an example of the release type that will be done based on a commit messages:

| Commit message | Release type |
| ------------------- | --------------------- |
| fix: [comment] | Patch Release |
| feat: [comment] | Minor Feature Release |
| perf: [comment] | Major Feature Release |
| doc: [comment] | No Release |
| refactor: [comment] | No Release |
| chore: [comment] | No Release |