dependabot[bot] on npm_and_yarn
Bump tmpl from 1.0.4 to 1.0.5 … (compare)
dependabot[bot] on npm_and_yarn
Bump tmpl from 1.0.4 to 1.0.5 … (compare)
dependabot[bot] on npm_and_yarn
Bump path-parse from 1.0.5 to 1… (compare)
dependabot[bot] on npm_and_yarn
Bump path-parse from 1.0.5 to 1… (compare)
dependabot[bot] on npm_and_yarn
Bump merge from 1.2.0 to 1.2.1 … (compare)
dependabot[bot] on npm_and_yarn
Bump merge from 1.2.0 to 1.2.1 … (compare)
@zaharidichev
one more question I had. Is there a way to redirect println() statements to the IOS system log. And in general what is the situation with logging ?
Nit: Once you have compiled output then sri part is done ,everything else is react-native. you'll get quick answers if you ask in react-native discord or react-native forums ..
NavigationScreenComponent
. Pretty much what I want to do is to have a header button that is interacting with the state of the screen component I am currently within. What is a proper way to do that ? I assume its via the parameters ?
class Step extends React.Component {
constructor(props) {
this.state = {
// State fields.
};
}
sendState() {
return this.state;
}
render() {
const { prop, classes } = this.props;
// Render stuff
}
}
`import sri.universal.components.TextC
import scala.scalajs.js.annotation.JSExportTopLevel
import scala.language.postfixOps
object MobileApp {
def main(args: Array[String]) = {}
@JSExportTopLevel("MyExportedComponent")
val MyExportedComponent = TextC("some text")
}`
import sri.universal.components.TextC
import scala.scalajs.js.annotation.JSExportTopLevel
import scala.language.postfixOps
object MobileApp {
def main(args: Array[String]) = {}
@JSExportTopLevel("MyExportedComponent")
val MyExportedComponent = TextC("some text")
}
render() {
const MyStuff = require("./assets/js/scalajs-output-android").MyExportedComponent;
return MyStuff
}
sendState
in my example ). So if TextC would have a function without any access modifiers, it would be visible from js perspective as a usual function?scalajs-react
it’s not clear or not possible, so I thinking about switching my project to SRI.
object MobileApp {
def main(args: Array[String]) = {}
@JSExportTopLevel("MyExportedComponent")
def MyExportedComponent(text: String) = TextC(text)
}