8000 GitHub - zhao95/JHNewsDetail: 案例集成了swift植入h5界面, 模式切换,字体大小切换,h5调用swift的图片浏览器(Case integrates swift implanted H5 interface, mode switch, font size switch, H5 call swift picture browser)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

案例集成了swift植入h5界面, 模式切换,字体大小切换,h5调用swift的图片浏览器(Case integrates swift implanted H5 interface, mode switch, font size switch, H5 call swift picture browser)

Notifications You must be signed in to change notification settings

zhao95/JHNewsDetail

 
 

Repository files navigation

JHNewsChange

  • 前言

    • 本案例主要解决一些新闻类型或电商类型的APP中详情页中原生和网页之间深入实现交互等系列问题;
    • 具体功能包括:
    • 换肤效果:日间模式和夜间模式切换,包括原生界面和h5界面;
    • 调整字体大小:原生控制网页中字体的放大和缩小
    • h5调用swift的图像浏览:点击网页中的任意一张图片调用swift中的图片浏览,包括位置记录和来回切换效果
  • 案例效果截图

    实现日夜间模式切换

    • 实现日夜间模式切换

    原生控制网页中字体大小

    • 原生控制网页中字体大小

    网页调用原生图片浏览

    • 网页调用原生图片浏览器
  • 运行代码

    • pod install
  • 补充

    • 获取更多React-Native跨平台开发资源,请关注我的微信公众号:

About

案例集成了swift植入h5界面, 模式切换,字体大小切换,h5调用swift的图片浏览器(Case integrates swift implanted H5 interface, mode switch, font size switch, H5 call swift picture browser)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 55.2%
  • HTML 32.8%
  • JavaScript 9.4%
  • CSS 1.9%
  • Ruby 0.7%
0