Comments (6)
Electron platform is just web platform displayed inside Electron, so the platform is web
. Why do you want to have a specific electron
platform? Can't you be able to detect it as if it were another web browser? Maybe with presence of some Electron-only APIs?
from re-start.
Thank for your answer, just to know if it was possible to do that (with same logical that .web, .android, .ios => .electron)
Specifically I had a problem with the navigation because I use "react-navigation" to mobile case and "react-router-dom" to web and electron cases. Except that web need BrowserRouter and electron need HashRouter, but I solve my problem with a conditional test with the help of "is-electron" lib.
from re-start.
Thank for your answer, just to know if it was possible to do that (with same logical that .web, .android, .ios => .electron)
Technically it's possible, but I don't know how to register the .electron
prefix to use it when generating for Electron
platform, and more specially if it's just web
platform packaged inside Electron.
Specifically I had a problem with the navigation because I use "react-navigation" to mobile case and "react-router-dom" to web and electron cases.
Why don't you use react-router-native
for mobile? The re-start_router
template has already an example how to unify both APIs...
Except that web need BrowserRouter and electron need HashRouter, but I solve my problem with a conditional test with the help of "is-electron" lib.
Is that true? I didn't have any problem with default BrowserRouter
in Electron...
from re-start.
Why don't you use react-router-native for mobile? The re-start_router template has already an example how to unify both APIs...
Because I think that "react-navigation" have a better approach to mobile UI (Native design according to platform, respect of safe area, ...). "react-router-native" work but have a web approach.
Is that true? I didn't have any problem with default BrowserRouter in Electron...
If I use BrowserRouter only, in the Electron view I see the navbar but there is no action when I click on link (Router content doesn't change). And with BrowserRouter in web and HashRouter in Electron, it works..
from re-start.
If I use BrowserRouter only, in the Electron view I see the navbar but there is no action when I click on link (Router content doesn't change).
Does it shows the navbar? It shouldn't... anyway, you should not touch the navbar at all...
from re-start.
Yes there is the navbar but whatever the url (ex /first-page, /second-page, /third-page ,...), it's always the first screen define wich is display in the router content.
Here there is the same problem with the solution that I used : how-to-use-react-router-with-electron
from re-start.
Related Issues (20)
- Question: Is it possible to build a system keyboard for android/io with react-everywhere? HOT 2
- Changes in App.js is not compiling HOT 16
- `react-native-web` version is too old HOT 2
- update react-native-web HOT 1
- undefined is not an object (evaluating in xxx.xxx) in safari. HOT 4
- UI library for cross platform HOT 1
- Add support for React Native DOM platform
- Add support for Carlo
- Jest encountered an unexpected token HOT 1
- Jest tests taking longer than they should HOT 2
- Is this project still active? HOT 4
- Electron issues HOT 15
- Add command to convert current project
- Babel-Jest and Jest Versions Incompatible w/ React-Scripts Dependency-Requirements HOT 2
- Everything saying depreciated
- Add support for `react-native-desktop` and/or `proton-native`
- Initial setup failing
- Comment: Nothing works any more. HOT 1
- I have created and added new files to a new branch in Git, so those files are not compiled in VS code.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from re-start.