Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
ons.platform in React-App
-
Hi,
i am using onsen-ui in a react app.
Now i want to force the platform for all components.
In vanilla js i will use ons.platform.select
https://onsen.io/v2/api/js/ons.platform.html#method-selectHow can i use this in react ??
many thanks in advance
Sepp
-
ok, solved by myself ;-)
Solution:
import ons from "onsen-ui";
and then in render-function:
ons.platform.select("android");
Very glad with onsen-ui, love it
Sepp