Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Releases

v0.7.0

Choose a tag to compare

@bnorm bnorm released this 14 Jan 04:56

All create or this release goes to @DVDAndroid! Thanks again!

New

* Support Kotlin 1.6.10
 (#26)

* Support latest version of kotlin-wrappers (pre.286) (#26)

plugins {
  kotlin("js") version "1.6.10"
  id("com.bnorm.react.kotlin-react-function") version "0.7.0"
}

v0.6.0

Choose a tag to compare

@bnorm bnorm released this 10 Oct 00:03

New

  • Support Kotlin 1.5.30
  • Support latest version of kotlin-wrappers (pre.256)
  • Include support library automatically with Gradle plugin
plugins {
  kotlin("js") version "1.5.31"
  id("com.bnorm.react.kotlin-react-function") version "0.6.0"
}

v0.5.1

Choose a tag to compare

@bnorm bnorm released this 04 Jun 05:57

Fixes

  • Generate components with functionalComponent rather than rFunction. (#22)
plugins {
  kotlin("js") version "1.5.10"
  id("com.bnorm.react.kotlin-react-function") version "0.5.1"
}

dependencies {
  implementation("com.bnorm.react:kotlin-react-function:0.5.1")
}

v0.5.0

Choose a tag to compare

@bnorm bnorm released this 22 May 21:53

New

  • Support Kotlin 1.5.0
  • Support generic functions (#12)
plugins {
  kotlin("js") version "1.5.0"
  id("com.bnorm.react.kotlin-react-function") version "0.5.0"
}

dependencies {
  implementation("com.bnorm.react:kotlin-react-function:0.5.0")
}

v0.4.0

Choose a tag to compare

@bnorm bnorm released this 22 Feb 00:34

New

  • Support Kotlin 1.4.30
plugins {
  kotlin("js") version "1.4.30"
  id("com.bnorm.react.kotlin-react-function") version "0.4.0"
}

dependencies {
  implementation("com.bnorm.react:kotlin-react-function:0.4.0")
}

v0.3.0

Choose a tag to compare

@bnorm bnorm released this 31 Jan 19:28

New

  • Support Kotlin 1.4.20
plugins {
  kotlin("js") version "1.4.21"
  id("com.bnorm.react.kotlin-react-function") version "0.3.0"
}

dependencies {
  implementation("com.bnorm.react:kotlin-react-function:0.3.0")
}

v0.2.1

Choose a tag to compare

@bnorm bnorm released this 09 Oct 14:19

Fixes

  • Only compile Kotlin/JS in multiplatform project.
plugins {
  kotlin("js") version "1.4.10"
  id("com.bnorm.react.kotlin-react-function") version "0.2.1"
}

dependencies {
  implementation("com.bnorm.react:kotlin-react-function:0.2.1")
}

v0.2.0

Choose a tag to compare

@bnorm bnorm released this 05 Sep 21:43

New Features

  • Support React component keys via @RKey annotation
plugins {
  kotlin("js") version "1.4.0"
  id("com.bnorm.react.kotlin-react-function") version "0.2.0"
}

dependencies {
  implementation("com.bnorm.react:kotlin-react-function:0.2.0")
}

Component Key

To set the key of a React functional component, use the @RKey annotation on a
single parameter to a @RFunction annotated function.

@RFunction
fun RBuilder.ListItem(@RKey item: Item) {
  ...
}

This uses the toString() value of the annotated parameter as the key for the
component. If the value of the key needs to be controlled more explicitly, mark
an unused parameter as the key.

@RFunction
fun RBuilder.Component(... other parameters ..., @RKey key: String) {
  // `key` doesn't need to be used to be set as the key of the component
}

If the @RKey annotated parameter is null, then the string "null" will be
set as the component key. It is also possible to use default parameters to
derive the key from another parameter.

v0.1.0

Choose a tag to compare

@bnorm bnorm released this 24 Aug 23:44

Initial release

plugins {
  kotlin("js") version "1.4.0"
  id("com.bnorm.react.kotlin-react-function") version "0.1.0"
}

dependencies {
  implementation("com.bnorm.react:kotlin-react-function:0.1.0")
}