Comments (5)
Yes, based on platform: Web, Native, Windows...
from create-rx-app.
@alariej Yes, it is possible.
Button
- Button.tsx
- Button.android.tsx
- Button.ios.tsx
- Button.windows.tsx
Button.tsx
is the Web version and is default version for all platforms if any of them were not created. .android.tsx
, ios.tsx
, .windows.tsx
- can be combined to .native.tsx
and all native platforms (Android, iOs, and Windows) will use code from that file.
To import code you need use usual import, and Babel/RN/RNW will resolve appropriate file, you don't need to do any additional work for that.
import Button from './Button/Button';
create-rx-app
uses the latest features from @babel., you can use @babel plugins, presents to transform your code, and do not need to use gulp
.
from create-rx-app.
Just tested it (on web and android), works perfectly! Many thanks for the quick response and this very useful repo!
from create-rx-app.
"dynamic imports"
Do you mean import based on platform?
from create-rx-app.
@alariej welcome! ;).
from create-rx-app.
Related Issues (11)
- Add script to run Windows App
- Various errors while trying to run Windows app HOT 4
- project name with hyphen HOT 1
- App crash on Android device, with error "libgnustl_shared.so is 32-bit instead of 64-bit" HOT 8
- Project fails to run on Win10 HOT 2
- (reactxp) create-rx-app: App Could not find plugin "proposal-numeric-separator" HOT 1
- create-rx-app creates an app but throws Babel Errors HOT 2
- Update webpack
- Fails to create app due to peer dependency issue
- no eslint configuration found error when use `--javascript` HOT 4
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 create-rx-app.