13 questions
0
votes
1
answer
369
views
How to use node module in Kotlin React?
I'm trying to use the bootstrap library. To do so, my first guess was to do the same as the Kotlin React tutorial :
I managed to import the bootstrap library using npm import easily but then I ...
0
votes
1
answer
537
views
How do i assign css properties when using DSL CSS in Kotlin/Js
I am very new to kotlin/Js and I am trying to style a page but most of the CSS attributes don't seem to support primitive values and the default values in the csstype package do not give me what i ...
1
vote
0
answers
196
views
How to Wrapper react-infinite-grid React module in Kotlin?
I want to use react-infinite-grid in Kotlin http://ggordan.com/post/react-infinite-grid.html
I have seen the How to import node module in React-Kotlin?
Below code is my reference it:
InfiniteGrid.kt
@...
3
votes
1
answer
762
views
How to import Bootstrap library in Kotlin-React-App
Right now I'm learning Kotlin for the front end, I've created Kotlin React App using
npx create-react-kotlin-app my-app
Then I tried to import Bootstrap using import like
@file:JsModule("...
1
vote
1
answer
379
views
How to use socket.io-client in KotlinJS
I want to use the socket.io-client library from nodejs in my React-Kotlin project.
I tried to load it like this:
@file:JsModule("socket.io-client")
@file:JsNonModule
package modules
@JsName("...
0
votes
1
answer
88
views
How to depend on a maven local jar when using create-react-kotlin-app https://github.com/JetBrains/create-react-kotlin-app
I want to build a frontend in kotlin/react.
I want it to be able to depend on common artefacts written in kotlin.
These artefacts will be in my local maven repo.
How do I reference these in package....
0
votes
1
answer
187
views
Error getting while building react kotlin app using IntelliJ
I've created a simple react app using create-react-kotlin-app. After successful npm start, I tried to get a build of the project using IntelliJ IDEA's Build -> Build Project, but it fails stating
...
2
votes
0
answers
93
views
Calling Kotlin/React from javascript
I'm trying to use Kotlin for building my React APP (https://github.com/JetBrains/create-react-kotlin-app).
How can I call a function defined in the Kotlin class through the javascript function? How to ...
8
votes
0
answers
909
views
How to use sass/scss in create-react-kotlin-app
I'm trying use scss in a kotlin-react application using create-react-kotlin-app in node for easy bootstrapping, but I'm stuck with setting the configuration to make it work
I already ejected, so I ...
0
votes
2
answers
2k
views
How to initialize a variable in Kotlin with an Interfaced type?
I'm brand new to Kotlin. I wanted to try the create-react-kotlin-app since I'm a react developer currently and I want to explore Kotlin.
I'm having a tough time instaniating my variables. I'm trying ...
0
votes
0
answers
66
views
Surface and Nativecrypto errors when trying to get current location
I am getting the errors:
E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f7fc080e0
E/NativeCrypto: ssl=0x7f5ec8fc00 cert_verify_callback x509_store_ctx=0x7f5d8f0270 arg=0x0
E/NativeCrypto: ssl=...
11
votes
2
answers
4k
views
How to import node module in React-Kotlin?
I created an app using the create-react-kotlin-app command and it loads in Chrome fine. I added the React Material UI package via NPM and that was successful. Now how do I use the Material UI module ...
9
votes
2
answers
1k
views
What is the right way to import 3rd party React components into the kotlin.js project?
I'm trying to use this lib in my create-react-kotlin-app:
https://material-ui-next.com/
I want to generate bunch of type safe wrappers. I started like this:
@file:JsModule("material-ui")
package ...