Comments (8)
It's entirely possible (and from your comment, highly probable!) that the issue here is on our end. @sveinar, let's take a look at our integration pattern and see if we should be doing something different now that we've combined our test apps (previously, we had separate apps for each platform, but they were recently merged into one)
from react-native-test-app.
Yes, but it can live on our backlog until we get around to taking action on it.
Feel free to resolve this :)
from react-native-test-app.
Alternatively (additionally?) it would be nice to allow the different platforms to align on the same keys. As far as I can tell, the appKey
property is used to initialize the component through various reflection-based means, but that means (implies?) that the different platforms can't share keys.
TL;DR: I have a scenario I want on all of my platforms, but I don't want N separate entries 😁
from react-native-test-app.
TL;DR: I have a scenario I want on all of my platforms, but I don't want N separate entries 😁
The appKey
is just the key you use to register a React app, typically via AppRegistry.registerComponent
. In the case of Android, iOS and macOS, we also support using said appKey
to find a corresponding native class with the right interface. This particular special case happens at runtime though. None of this should prevent you from reusing the key for multiple platforms. You don't have to create separate entries if you don't want to. Is this not working as intended? What issues are you seeing?
from react-native-test-app.
Very possibly and it would be epic if the support already exists. Hoping that it is possible to resolve (via reflection) perhaps "Auth" to e.g. com.company.auth.AuthFragment for instance on Android..and on iOS, I guess the NSClassFromString("Auth") would resolve to the equivalent Auth controller right?
from react-native-test-app.
Very possibly and it would be epic if the support already exists. Hoping that it is possible to resolve (via reflection) perhaps "Auth" to e.g. com.company.auth.AuthFragment for instance on Android..and on iOS, I guess the NSClassFromString("Auth") would resolve to the equivalent Auth controller right?
Yes, this is how it's always been, since the very first release. You just need to make sure that your classes are appropriately named and/or exported (if you have a Swift class, you can decide what the Obj-C name is).
from react-native-test-app.
@sveinar, @evancharlton: Is this still needed?
from react-native-test-app.
Thanks, I'll close this for now. Let me know if you want to reopen it.
from react-native-test-app.
Related Issues (20)
- iOS/macOS: add ability to customize `Info.plist`
- [email protected] cannot be added because it does not exist or is unsupported HOT 3
- Files are generated under the wrong folder if no `node_modules` folder exists
- Add support for `react-native` 0.73
- Add support for `react-native` 0.74 HOT 1
- Action Required: Fix Renovate Configuration
- Quick start wiki has incorrect command in Macos section HOT 1
- Generate code from `app.json` and avoid parsing JSON at runtime HOT 3
- Add support for Bridgeless Mode
- `bundleRoot` ignored on apple HOT 1
- Improve the docs: add npm examples HOT 3
- Breaking changes in 4.0 HOT 5
- iOS / Android Assets HOT 7
- Adding Cocoapods minimum version requirement when setting up a project HOT 5
- Fresh install fails on Windows (Latest version as of this issue) HOT 1
- Is react-native-test-app's only use case: library testing or can it be used for production apps as well HOT 2
- Windows: Re-enable builds with NuGet
- Add support for `react-native` 0.75
- Testing against multiple RN versions HOT 12
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 react-native-test-app.