Skip to content

purenative/pn-android

Repository files navigation

Pure Native Components

Pure Native Components is an library that includes some components written in Jetpack Compose. The bottom line is that these components were often encountered in our projects and it was decided to move them to a separate library for the convenience of current and future employees of the company and just people who it would be interesting to look at the functions created by Jetpack Compose. Also, libraries of other open access users whose functionality we need have been and will be transferred here.

Modules

Common Android things.

Jetpack Compose things.

Sample App for research and development.

Installation

Gradle

Make sure you've added Kotlin support to your project.

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.purenative.pn-android:core:$latest_version'
    implementation 'com.github.purenative.pn-android:compose:$latest_version'
}

Appearance, examples and description

At the moment the sample app looks like this:

Application operation in the form of video

Examples

An example of how the component works

The component is responsible for displaying your GIF

An example of how the component works

The component is designed to display a calendar. From the functionality, it is possible to determine the difference in days between two selected dates and clear the result

An example of how the component works

The component is designed to display the loading status on the screen

An example of how the component works

The component is designed to be able to select from a list of elements of a certain type

An example of how the component works

The component is designed to display a gallery of images with the ability to zoom in using a double click or by simultaneously spreading two fingers on the screen

An example of how the component works MaskVisualTransformationComponent

The component is designed to control the input format

An example of how the component works

The component is designed to display a list with a large amount of data. To spend much less resources on getting a large amount of data at once, the component suggests dividing this data into smaller pieces and requesting further data when approaching the end of the list

An example of how the component works

Component of a real screen, where during the loading of data, flickering blocks of the sizes corresponding to these components are displayed in place of the final UI.

An example of how the component works

The component is designed to display tables https://patrykandpatrick.com/vico/wiki/ - extremely useful for understanding the api library