Inject value in miniRuntime
#280
321paranoiawhy
started this conversation in
Feature Requests
Replies: 2 comments 3 replies
-
|
since already have const stylesheet = createStyleSheet((theme, miniRuntime) => {
const isLandscape = miniRuntime.orientation === 'landscape';
return {
text: {
color: isLandscape ? 'red : 'blue'
}
};
}); |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Interesting idea! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From the doc, we can get some info from
miniRuntime, but how can we add value in it so the value can be shared accross the app, I mean register the value inminiRuntimeas soon as possibleBeta Was this translation helpful? Give feedback.
All reactions