-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New react-native #1
Conversation
Hey hey, and thanks for this, I had been meaning to look into it. I'll have a better look at it tomorrow, but on a cursory glance it looks all good. My plan is to proceed with the following two things:
I'll let you decide how much work you want to put into this. If you feel like trying 1 or 2 just tell me and I'll guide you, otherwise I can take it from here :) |
|
Great! So about 1, dont feel pressured to keep much of what's in the old demo, it's terrible anyway. It's much more important that it's easy to understand and that we can add a bit more stuff later. In particular about the icons on expo, that's one of the things that's actually working there, and I would imagine that you can just lift the code and have the material icons working. But if it doesn't, dont stress it. About 2) I'll publish an early version of the plugin hopefully tomorrow which you can try. It should also come with some docs which I havent written yet, so you'll have to have some patience over the next week or so for that :) |
Ok, this is my initial proposal for 1. An app with a side menu, currently with 3 options:
The menu is done with the Only issue (for now) are the |
I havent started it yet, but the code looks awesome. Feel free to delete the old react-native stuff and remove the 2-suffix from this code. I PMed you instructions for how to use the plugin :) |
import scala.scalajs.js.Dynamic.literal | ||
|
||
object Styles { | ||
val headerStyle = literal( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use TextStyle
/ ViewStyle
instead of literals?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm... I think they don't play well with slinky.native.{Text, View}
but honestly I haven't examined the issue in depth
Pull from https://github.com/oyvindberg/SlinkyTypedDemos/tree/react-native - that should unblock you :) |
I fixed the font loading for you, so the icons work now, see 4c93634 (same branch as last time) |
By the way I'm fine with merging this any time you want |
Great! You can definitely merge, I haven' tested it yet but looks like everything is solved, excellent. |
Here is the complete and working new module.
But I am unsure about how to add it with the new
build.sbt
styleIn the old style I wrote:
So in the end I am not modifying
build.sbt
here.Can you please have a look and in case update
build.sbt
?