Can react native use jQuery

前端 未结 1 1406
不思量自难忘°
不思量自难忘° 2020-12-03 17:15

I am migrating my phonegap apps into react-native.

Since my phonegap apps use a lot of jQuery plugins, so I am curious if react-native can use jQuery.

1条回答
  •  春和景丽
    2020-12-03 17:48

    Nope. JQuery heavily relies on HTML DOM and CSS where react-native has their own DOM-like native view hierarchy with their own style implementation which is similar to subset of CSS (flex-box) but it is implemented differently.

    Just to put it in perspective - React-Native app is NOT an HTML/Hybrid app - it's a native app with logic controlled by Javascript and using react patterns with virtual view hierarchy representation. The only common part with web apps is Javascript engine (no CSS/HTML). Phonegap apps are Hybrid HTML apps using web views so they can use frameworks/plugins that are not pure javascript but tied to HTML/CSS.

    0 讨论(0)
提交回复
热议问题