-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Make Android style default #1419
Comments
Sounds like a great idea, Can you make a PR to do this? |
Also could you outline the steps you did to get react-native-web working? Would love to put it in the docs. |
Created a PR here. I use neutrino for the setup. Just create a new project as described here and select react. Then add Currently you must add Then you must add the react-native modules to webpacks include (see My const { join } = require('path');
const nodeModulesDir = join(__dirname, 'node_modules')
module.exports = {
use: [
[
'@neutrinojs/react',
{
html: {
title: 'test'
}
}
],
(neutrino) => {
neutrino.config.resolve.extensions.prepend('.web.jsx').prepend('.web.js')
neutrino.config.module
.rule('compile')
.include
// Add other modules that needs to be compiled by babel
.add(join(nodeModulesDir, 'react-native-elements'))
.add(join(nodeModulesDir, 'react-native-vector-icons'))
.add(join(nodeModulesDir, 'react-native-touchable-scale'))
.end();
}
]
}; For const style = document.createElement('style')
const materialIconsFont = require('react-native-vector-icons/Fonts/MaterialIcons.ttf')
const materialIconsFontStyles = `@font-face {
src: url(${materialIconsFont});
font-family: 'MaterialIcons';
}`
style.type = 'text/css'
style.appendChild(document.createTextNode(materialIconsFontStyles))
document.head.appendChild(style) |
Is your feature request related to a problem? Please Describe.
Currently there is no consistent style applied to components for
react-native-web
(Platformweb
),electron
(Platformdesktop
), etc.Describe the solution you'd like
We should set
android
style as default for all platforms.Describe alternatives you've considered
We could set
ios
as default or create a thirddefault
style.Additional context
Some examples:
The text was updated successfully, but these errors were encountered: