Questions tagged [universal]

621 questions
67
votes
8 answers

Can you use React Native to create a desktop application?

I'm making a desktop application with create-react-app and Electron. It needs to run on Mac, Windows and Linux. I also want to make a native version afterwards for Android and iOS. Can I just make an application in React Native that works on mobile…
riscos3
  • 1,617
  • 2
  • 11
  • 16
37
votes
5 answers

Why "universal references" have the same syntax as rvalue references?

I just made some research about those (quite) new features and I wonder why C++ Committee decided to introduce the same syntax for both of them? It seems that developers unnecessary have to waste some time to understand how it works, and one…
Piotrek
  • 451
  • 1
  • 5
  • 9
23
votes
2 answers

Angular Universal html lang tag

In Angular Universal I have an index.html file. At the top it has I would like to change this based on the page I am on. maldonadoattorney.com/es/jailreleases would be maldonadoattorney.com/jailreleases would…
flobacca
  • 936
  • 2
  • 17
  • 42
22
votes
2 answers

Adding iPad support to an iPhone project: universal vs two separate apps?

I have an existing iPhone app and it seems that a significant proportion of my users these days are running it on iPad (I can tell because a lot of the emails I get from users have a "sent from my iPad" signature). I am now implementing the iPad…
Clafou
  • 15,250
  • 7
  • 58
  • 89
21
votes
5 answers

Dynamically load nib for iPhone/iPad within view controller

I have converted an iPhone application using the wizard like thing in XCode into a universal app. It builds fine but obviously looks a bit rubbish in some areas :) I need to load nibs according to which device is being used. I dont wish to create…
Chris James
  • 11,571
  • 11
  • 61
  • 89
20
votes
3 answers

Stop only iPhone screen rotating in Universal Xcode 6 project

With the introduction of Xcode 6, Apple removed the ability to easily have multiple storyboards for iPad and iPhone in Universal apps. Due to this, you cannot differentiate between iPad and iPhone on the rotation panel/settings. How can i stop the…
InfinityLoop
  • 429
  • 3
  • 15
18
votes
5 answers

react-router: Not found (404) for dynamic content?

How can react-router properly handle 404 pages for dynamic content in a Universal app? Let's say I want to display a user page with a route like '/user/:userId'. I would have a config like this:
Tom Esterez
  • 21,567
  • 8
  • 39
  • 44
17
votes
1 answer

iOS Universal Device App with SpriteKit, how to scale nodes for all views?

I want to make a landscape app to be universal, so that the sprite nodes scale proportionally to whatever view size is running the app. I'd like an entirely programmatic solution because I don't like the IB. My game is pretty simple, and I don't…
ljs
  • 315
  • 2
  • 10
14
votes
3 answers

Trouble with loading a separate XIB for iPad or iPhone

Im having trouble figuring out how to load a separate XIB for iPad or for iPhone in a Universal app. Its easy enough to convert the Xcode project to Universal and have separate Main view interfaces. My problem is the secondary view and getting it to…
Linuxmint
  • 4,716
  • 11
  • 44
  • 64
14
votes
1 answer

Windows 10 UWP app - Back button only works when pressed the second time

I am developing a Windows 10 UWP app with Visual Studio 2015. I am working on the back button functionality right now. Unfortunately there is a problem. When I press the back button (either on a Phone or on the PC) it doesn't go back to the previous…
XHotSniperX
  • 712
  • 7
  • 25
13
votes
6 answers

Angular 12 Universal Configuration 'development' is not set in the workspace

I created new project - client - on Angular 11. Then updated ng version to 12 Angular. Then installed Universal: ng add @nguniversal/express-engine Then I'm trying to run my Universal Angular, but it throws error: npm run dev:ssr client@0.0.0…
Tatyana Molchanova
  • 1,305
  • 5
  • 12
  • 23
13
votes
3 answers

React lazy load/infinite scroll solutions

It took me a while to figure out how to lazy load images using the excellent React Lazyload component. The demo lazy loaded images on scroll but when testing I could not get the same behavior. The culprit was overflow: auto; which conflicted with…
Vladimir Ramik
  • 1,920
  • 2
  • 13
  • 23
11
votes
2 answers

Is there a problem in perl 5.12.2 using splice on @ISA?

The following is a debug session on Perl 5.12. Does this make any sense? Does UNIVERSAL cache a version of the @ISA variable, which if forever uses thereafer. Back before Class::ISA was deprecated, I used to call Class::ISA::self_and_super_path to…
Axeman
  • 29,660
  • 2
  • 47
  • 102
10
votes
0 answers

How to SSR on specific routes on angular-universal?

I am using angular-universal in my PWA app for SEO purpose which is working fine, but it has the following issues 1). PWA app is not working in offline mode. 2). During first time load of the app, it flickers screen component (i think it is due to…
Juhil Kamothi
  • 213
  • 1
  • 10
10
votes
1 answer

universal and existential quantifier in prolog

How can I implement following rules in prolog. I write the “ No spiders are mammals” sentence as Existential and universal: ¬∃x(mammals(X) ∧ spider(X) ) //It is not the case that mammals are spider ∀X(mammals(X) ⇒ ¬spider(X)) //All mammals are…
user2064809
  • 403
  • 1
  • 4
  • 13
1
2 3
41 42