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

generator-react-native-tvos

v1.2.2

Published

React Native tvOS application generator

Downloads

27

Readme

React Native tvOS App Generator

Yeoman generator to help you bootstrap your React Native tvOS (v0.54.1) project in seconds. You will get a functional application including navigation, redux, a local server ready for async calls, containers, screens, ready to use components, themes (styled components), i18n.

A. Generate the React Native tvOS app on your Mac

  1. Install yo

    npm i -g yo
  2. Install the generator

    npm i -g generator-react-native-tvos
  3. Use the generator (it may tell you to install / upgrade node, yarn, react-native-cli)

    yo react-native-tvos
  4. Define the app screens

    1. Screen title
    2. Included components per screen, one or more of these: Featured List, Poster List (has pagination), Category List
  5. Change into the app folder

B. Start the backend API in a terminal window

  1. Verify .env file from app folder to make sure it is using your Mac local ip address

  2. Start API server

    1. node v8 is installed globally
    yarn run server
    1. node v8 is only available inside the current terminal window (you are using nvm for example)
    cd backend
    node server
  3. Make sure your Apple TV (4th generation and above) is connected to the same LAN as your Mac

  4. If your Apple TV (4th generation and above) cannot access the API running on your Mac, you may have to check your firewall settings and / or expose port 3000 on your Mac

C. Xcode setup

  1. From app folder link react native libraries

    react-native link
  2. Open ios/[appName].xcodeproj with Xcode

  3. Change device to be able to run tvOS target

  4. Change the target to [appName]-tvOS you have to run, from Xcode centre section

  5. Under [appName]-tvOS General Settings, automatically manage signing for targets [appName]-tvOS and [appName]-tvOSTests (use the same Apple ID profile you have on your Apple TV, if this the case)

  6. Add libRNFS.a and libRCTVideo.a libraries (tvOS versions) to Linked Frameworks and Libraries

  7. Under Build Phase, make sure you have all the fonts added under Copy Bundle Resources: Lato, Roboto, Ubuntu (the whole font families must be added) and FontAwesome

  8. From Deployment Info, change Deployment Target to 10.0

  9. If node v8 is not installed globally, you need to run this also inside of a node v8 enabled terminal window

    yarn run start
  10. Run it on Apple TV (4th generation and above) device or Apple TV simulator

  11. Using the activation code on the first screen, open backend/activation.json file and set the field activated to true for that activationCode. Close the file backend/activation.json after you finish editing.

  12. Enjoy