npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-template-fego

v0.0.33

Published

react-native 自定义模版。快速构建集导航、高级组件、热更新等能力的react-native项目。

Downloads

21

Readme

react-native-template-fego · npm version PRs Welcome

react-native 自定义模版。快速构建集导航、高级组件、热更新等能力的react-native项目。

  • 官方支持,稳定可靠 RN的0.43版本提供了自定义模板工程的能力。不用担心RNSDK升级导致不可用或者适配困难的问题。
  • 快速构建,操作简单 只需要几分钟,一个可以在安卓和iOS两端运行的RN项目即可构建成功。react init命令完成后,只需要运行init.sh脚本,即可直接进行开发调试。
  • 降低门槛,功能整合 集成导航、热更新高阶组件等能力和技术方案,降低了RN的开发门槛。

要求:react-native: >= 0.47, <= 0.55, iOS: >= 8.0, Android: >= 4.1 (API 16)

Get Started

项目构建

  1. 执行react-native init

    $ react-native init projectName --version="RNSDKVersion" --template fego
    # 通过--version来指定所用的react-native版本,不指定的话,会默认使用最高版本。

    注意: init过程会篡改ttf字体文件的内容导致出错,暂无很好的解决办法,所以init完成之后需要从git下载resource文件夹下的song.ttf替换本地文件。

  2. 执行init.sh脚本, 请勿重复执行

    $ cd projectName
    $ sh tools/init.sh

项目运行

  1. 运行准备 初次运行需要先安装Node和Pod库:

    $ npm run init

    库有更新的话通过如下命令:

    $ npm run update

    开启服务:

    $ npm start
  2. 运行模拟器 通过命令运行:

    $ react-native run-ios
    $ react-native run-android

    或者打开Xcode和AndroidStudio运行。

  3. 运行真机 Xcode中选取设备后,iOS可以直接运行。 Android运行真机目前需要先获取电脑IP进行设置。

热更新:fego-rn-update

组件库:fego-rn

Contributing

有任何疑问或建议,欢迎Issues。 有对代码bug的修正和优化,欢迎Pull requests