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

rn-initapp-javascript-template

v1.0.0

Published

Initial React Native Project Template. This Template includes SplashScreen, Custom Statusbar, Custom Header, Custom Text Box, Custom Font Family, Redux, Axios, Reanimated for Animations, SVG Setup, Intro Screens Setup, Stack navigations, Tab and Custom D

Downloads

155

Readme

rn-initapp-javascript-template

This Template includes SplashScreen, Custom Statusbar, Custom Header, Custom Text Box, Custom Font Family, Redux, Axios, Reanimated for Animations, SVG Setup, Intro Screens Setup, Stack navigations, Tab and Custom Drawer Navigations Setup. Typescript is installed in this template ( optional ).

In-Built Packages

1. react-native-bootsplash

2. react-native-svg

3. react-native-svg-transformer

4. react-redux

5. redux

6. axios

7. react-native-reanimated

8. react-native-gesture-handler

9. @react-navigation/native

10. react-native-screens

11. react-native-safe-area-context

12. @react-navigation/native-stack

13. @react-navigation/drawer

14. @react-navigation/bottom-tabs

Installation

From NPM

npx react-native init ProjectName --template rn-initapp-javascript-template

From Github

npx react-native init ProjectName --template https://github.com/senthalan2/rn-initapp-javascript-template.git

Steps after Project Initialization

1. Set SplashScreen Image

Run Following react-native-bootsplash Command to generate Splash Image.

   npx react-native generate-bootsplash <logoPath> --logo-width=<width> --background-color=<BackgroundColor>

(e.g) npx react-native generate-bootsplash Src/Assets/splash_image.png --logo-width=150 --background-color=FFFFFF

note:background color is optional. Default Background Color is #FFFFFF. We can also run the above command without background-color.

Refer react-native-bootsplash

Android

In Android, Bootsplash Command generated the all assets required for splashscreen, and this template have bootsplash setup for android. So, No additional steps needed for Android.

IOS

In IOS, needed some additional steps,

  1. Bootsplash command generated three different sizes (@1x, @2x, @3x) of the Splash Image ( shown in below image ).

Screenshot 1

  1. Now Open XCode, Under your Project, select LaunchScreen and select BootSplashLogo ( Splash Image ). In the right panel choose Attributes Inspector -> View -> Content Mode -> Aspect Fit. ( Refer Below Image )

Screenshot 2

  1. Go to Size Inspector and choose a width and a height that looks good (this will scale to other screen sizes).

  2. Drag your image into the center of the screen until you see both a horizontal and vertical blue line.

  3. After that, under Autoresizing change the window with the arrows, make sure, it looks like in the below Image. All outer arrows should be deselected and all inner arrows selected. ( Refer Below Image for Step 3, Step 4 and Step 5 ).

Screenshot 2.1

  1. To change Background Color, select LaunchScreen select View under View and choose background Color ( shown in below image).

Screenshot 2

note: Edit the LaunchScreen as per your need. After edited the LaunchScreen, make sure that the above steps are solved.

2. Set Custom Fonts

Drop the custom font family files (.ttf) into the assets/fonts directory under your project root directory ( shown in below image ).

Screenshot 3

After the above step, run the below command to link the assets with android and ios.

npx react-native link

Custom Fonts Setup Completed. Run your project.

Usage of Custom Font Families

Add the Font family name in Src/Utilities/GlobalFonts.js ( Refer below image ).

Screenshot 4

Import and Use the fonts wherever you want. ( Refer below image ).

Screenshot 5