mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 22:02:24 -06:00
[GH-ISSUE #151] Some suggestions #95
Labels
No labels
bug
documentation
enhancement
libui issue
pull-request
question
wait for libui implementation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/proton-native#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Angelk90 on GitHub (May 31, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/151
You can position it in position
(x, y)app, with the possibility to put it in the middle of the screen.Intercepting the event of change.
render (<Home />);it would be better to use as semantics / syntax:Export (<Home />);to stay on the theme with the genre react, render could be confused with the definition of class rendering.<App>it would be better to use as semantics / syntax:<Container> or <View>to stay in theme with the genre.As a general rule, the App signature is used to assign the name to the class of the basic project.
import {render, Window, App} from 'proton-native';inimport {render, App, Window} from 'proton-native';Personally it would be good something like this:
import {Export, Container, Window} from 'proton-native';orimport {Export, View, Window} from 'proton-native';@mischnic commented on GitHub (May 31, 2018):
fullscreenprop ofWindow? "Intercepting the event of change" ?ReactDOM.render(<MyApp/>), in React Native it'sAppRegistry.registerComponent(something).What do you mean by "render could be confused with the definition of class rendering"?
Viewwill be added in #76.@Angelk90 commented on GitHub (May 31, 2018):
@mischnic :
Looking for documentation I can not find it.
Anyway: this is what I get on win 8.1:
Well that's not what I was hoping for, there's no title bar, the three icons:
icon reduction, restore, Window onClose.
3) windows 8.1
4) I meant something like this:
Being that in react native when you export a class you use export public class ...
it could be a good option to use export, for example.
5) Was not it onShouldQuit?
I wanted to keep the same things just changing the name of the elements:
import {render, Window, App} from 'proton-native';I wanted to propose considering, for example, 5)
import {Export, View, Window} from 'proton-native';because Window is the part that is more to the whole of everything, then from the one that is more external to the innermost element.
My are just suggestions. ;)
@mischnic commented on GitHub (May 31, 2018):
https://proton-native.js.org/#/component_APIs/window?id=fullscreen
Works as expected on macOS.
example from React Native:
You still have to "render" it somewhere. And how should proton-native know which your main file is?
@Angelk90 commented on GitHub (May 31, 2018):
@mischnic : In fact I believe that:
registerComponent (<App />)be better than
render (<App />)in this case.
@Angelk90 commented on GitHub (May 31, 2018):
P.Š.
From the documentation you can not get to the various elements.
There is no list with all the elements.
@mischnic commented on GitHub (May 31, 2018):
?
@Angelk90 commented on GitHub (May 31, 2018):
Missing, in the list:
window,
Menu,
Box,
Form,
TextInput,
Picker,
Button,
Text,
....
@mischnic commented on GitHub (May 31, 2018):
Have you tried scrolling down the sidebar?
@Angelk90 commented on GitHub (May 31, 2018):
@mischnic : Ops, ok. Ahah thx
@kusti8 commented on GitHub (May 31, 2018):
Exportmakes less sense thanrender. When render gets called, it literally renders everything, which is pretty intuitive.This would also be a major breaking change. Render in React is chained also when you have a component in a component. It doesn't serve any purpose.