
Security News
AI Slop Is Polluting Bug Bounty Platforms with Fake Vulnerability Reports
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.
expo-router-skia-template
Advanced tools
An Expo Router template with React Native Skia (for high-performance graphic rendering & animations).
An Expo Router template with React Native Skia (for high-performance graphic rendering & animations).
tabs@50
template☝️ Note: This template is also available with a NativeWind integration for universal styling, if that's of interest.
Simply create a new expo app using this template:
npx create-expo-app@latest --template expo-router-skia-template MyUniversallyAnimatedApp
Run yarn start
to start the server. Works out-of-the-box for web. For iOS, run npx expo run:ios
and for Android run npx expo run:android
.
Skia works on Web out-of-the-box in any part of this template app.
By default in this template, Skia is loaded using defered component registration via index.web.js
.
If you ever wish to use code splitting instead:
index.js
and index.web.js
files and change your package.json
entry point by updating this line:{
(...)
"main": "expo-router/entry",
(...)
}
SkiaUI.web.tsx
:import Constants from 'expo-constants';
import { Text, View, StyleSheet } from 'react-native';
import { WithSkiaWeb } from '@shopify/react-native-skia/lib/module/web';
const SkiaUI = () => <View style={styles.container}>
<WithSkiaWeb
opts={{ locateFile: () => '/static/js/canvaskit.wasm' }}
getComponent={() => require('./HelloSkia')}
fallback={<Text style={{ color: 'white', textAlign: 'center' }}>Loading Skia...</Text>}
/>
</View>;
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
paddingTop: Constants.statusBarHeight,
},
});
export default SkiaUI;
Note: for the native SkiaUI.tsx
, you can simply load the <HelloSkia />
component directly.
FAQs
An Expo Router template with React Native Skia (for high-performance graphic rendering & animations).
The npm package expo-router-skia-template receives a total of 5 weekly downloads. As such, expo-router-skia-template popularity was classified as not popular.
We found that expo-router-skia-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.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.
Research
Security News
The Socket Research team investigates a malicious Python package disguised as a Discord error logger that executes remote commands and exfiltrates data via a covert C2 channel.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.