
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
rn-initapp-javascript-template
Advanced tools
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
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 ).
npx react-native init ProjectName --template rn-initapp-javascript-template
npx react-native init ProjectName --template https://github.com/senthalan2/rn-initapp-javascript-template.git
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
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.
In IOS, needed some additional steps,
LaunchScreen
and select BootSplashLogo
( Splash Image ). In the right panel choose Attributes Inspector -> View -> Content Mode -> Aspect Fit
. ( Refer Below Image )Go to Size Inspector
and choose a width and a height that looks good (this will scale to other screen sizes).
Drag your image into the center of the screen until you see both a horizontal and vertical blue line.
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 ).
LaunchScreen
select View
under View
and choose background Color ( shown in below image).note: Edit the LaunchScreen as per your need. After edited the LaunchScreen, make sure that the above steps are solved
.
Drop the custom font family files (.ttf) into the assets/fonts
directory under your project root directory ( shown in below image ).
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.
Add the Font family name in Src/Utilities/GlobalFonts.js
( Refer below image ).
Import and Use the fonts wherever you want. ( Refer below image ).
FAQs
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
The npm package rn-initapp-javascript-template receives a total of 21 weekly downloads. As such, rn-initapp-javascript-template popularity was classified as not popular.
We found that rn-initapp-javascript-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.