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