index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/Shopify/react-native-skia/docs/docs | petrpan-code/Shopify/react-native-skia/docs/docs/text/glyphs.md | ---
id: glyphs
title: Glyphs
sidebar_label: Glyphs
slug: /text/glyphs
---
This component draws a run of glyphs, at corresponding positions, in a given font.
| Name | Type | Description |
|:------------|:-----------|:------------------------------... | 6,500 |
0 | petrpan-code/Shopify/react-native-skia/docs/docs | petrpan-code/Shopify/react-native-skia/docs/docs/text/path.md | ---
id: path
title: Text Path
sidebar_label: Text Path
slug: /text/path
---
Draws text along a path.
| Name | Type | Description |
|:------------|:-------------------|:-------------------------------------------------------------|
| path | `... | 6,501 |
0 | petrpan-code/Shopify/react-native-skia/docs/docs | petrpan-code/Shopify/react-native-skia/docs/docs/text/text.md | ---
id: text
title: Text
sidebar_label: Text
slug: /text/text
---
The text component can be used to draw a simple text.
Please note that the y origin of the Text is the bottom of the text, not the top.
| Name | Type | Description |
|:------------|:-----... | 6,502 |
0 | petrpan-code/Shopify/react-native-skia/docs/src | petrpan-code/Shopify/react-native-skia/docs/src/components/ExpoSnackApi.ts | /* eslint-disable @typescript-eslint/no-explicit-any */
export const ExpoSnack = {
append: function (container: any, options?: any) {
options = options || {};
options.id =
options.id || container.dataset.snackId || container.dataset.sketchId;
options.platform =
options.platform ||
conta... | 6,503 |
0 | petrpan-code/Shopify/react-native-skia/docs/src | petrpan-code/Shopify/react-native-skia/docs/src/components/Snack.tsx | /* global HTMLDivElement */
import React, { useEffect, useRef } from "react";
// eslint-disable-next-line import/no-extraneous-dependencies
import { useColorMode } from "@docusaurus/theme-common";
import { ExpoSnack } from "./ExpoSnackApi";
interface SnackProps {
id: string;
}
export const Snack = ({ id }: SnackP... | 6,504 |
0 | petrpan-code/Shopify/react-native-skia/docs/src | petrpan-code/Shopify/react-native-skia/docs/src/css/custom.css | /**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #3884ff;
--ifm-color-primary-dark: #1f74ff;
-... | 6,505 |
0 | petrpan-code/Shopify/react-native-skia/docs/src | petrpan-code/Shopify/react-native-skia/docs/src/pages/index.module.css | /**
* CSS files with the .module.css suffix will be treated as CSS modules
* and scoped locally.
*/
.heroBanner {
padding: 4rem 0;
text-align: center;
position: relative;
overflow: hidden;
/* background-color: #85b3ff; */
}
@media screen and (max-width: 966px) {
.heroBanner {
padding: 2rem;
}
}
... | 6,506 |
0 | petrpan-code/Shopify/react-native-skia/docs/src | petrpan-code/Shopify/react-native-skia/docs/src/pages/index.tsx | import React from "react";
import clsx from "clsx";
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import styles from "./index.module.css";
function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
retu... | 6,507 |
0 | petrpan-code/Shopify/react-native-skia/docs/static | petrpan-code/Shopify/react-native-skia/docs/static/img/logo.svg | <svg width="492" height="437" viewBox="0 0 492 437" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M491.3 218.5C491.3 186 450.6 155.2 388.2 136.1C402.6 72.5 396.2 21.9 368 5.7C361.5 1.9 353.9 0.0999985 345.6 0.0999985V22.4C350.2 22.4 353.9 23.3 357 25C370.6 32.8 376.5 62.5 371.9 100.7C370.8 110.1 369 120 366.... | 6,508 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/.buckconfig |
[android]
target = Google Inc.:Google APIs:23
[maven_repositories]
central = https://repo1.maven.org/maven2
| 6,509 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/.editorconfig | # Windows files
[*.bat]
end_of_line = crlf
| 6,510 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/.eslintrc | {
"extends": "react-native-wcandillon",
"plugins": ["reanimated"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
}
],
"no-bitwise": "off",
"no-var": "off",
"@typescript... | 6,511 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/.node-version | 18
| 6,512 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/.watchmanconfig | {} | 6,513 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/Gemfile | source 'https://rubygems.org'
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '>= 2.6.10'
gem 'cocoapods', '>= 1.11.3'
| 6,514 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/Gemfile.lock | GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.5)
rexml
activesupport (6.1.7.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
algoli... | 6,515 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/app.json | {
"name": "RNSkia",
"displayName": "RNSkia"
} | 6,516 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/babel.config.js | module.exports = {
presets: ["module:metro-react-native-babel-preset"],
plugins: [
"transform-inline-environment-variables",
"react-native-reanimated/plugin",
],
};
| 6,517 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/index.html | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>React Native Skia Examples</title>
<style>
#app-root {
display: flex;
flex: 1 1 100%;
... | 6,518 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/index.js | /**
* @format
*/
import { AppRegistry } from "react-native";
import App from "./src/App";
import { name as appName } from "./app.json";
AppRegistry.registerComponent(appName, () => App);
| 6,519 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/index.web.js | import { AppRegistry } from "react-native";
// TODO: we might have this a simple JS file so it's the same URL from the dev or production package
import { LoadSkia } from "@shopify/react-native-skia/src/web";
globalThis.setImmediate = requestAnimationFrame;
globalThis.process = {
env: {
CI: "false",
},
};
if (... | 6,520 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/jestEnv.mjs | /* eslint-disable import/no-default-export */
/* eslint-disable import/no-extraneous-dependencies */
import CanvasKitInit from "canvaskit-wasm/bin/full/canvaskit";
import { TestEnvironment } from "jest-environment-node";
const CanvasKit = await CanvasKitInit({});
export default class SkiaEnvironment extends TestEnvir... | 6,521 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/jestSetup.mjs | /* eslint-disable import/no-extraneous-dependencies */
import { jest } from "@jest/globals";
import CanvasKitInit from "canvaskit-wasm/bin/full/canvaskit";
import JestUtils from "react-native-reanimated/lib/module/reanimated2/jestUtils";
import Reanimated from "react-native-reanimated/mock";
import Mock from "../packa... | 6,522 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/metro.config.js | // metro.config.js
//
// with multiple workarounds for this issue with symlinks:
// https://github.com/facebook/metro/issues/1
//
// with thanks to @johnryan (<https://github.com/johnryan>)
// for the pointers to multiple workaround solutions here:
// https://github.com/facebook/metro/issues/1#issuecomment-541642857
//... | 6,523 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/package.json | {
"name": "rnskia",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android --active-arch-only",
"ios": "react-native run-ios",
"start": "react-native start",
"web": "webpack serve --mode=development --config webpack.config.js",
"build:web": "rm -rf dist/ && we... | 6,524 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/tsconfig.json | {
"extends": "eslint-config-react-native-wcandillon/tsconfig.base",
"compilerOptions": {
"noUncheckedIndexedAccess": false,
}
}
| 6,525 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/webpack.config.js | // webpack.config.js
const path = require("path");
const fs = require("fs");
const webpack = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const { presets, plugins } = require(`${__dirname}/babel.config.js`);
const babelLoaderConfiguration = {
test: /\.(ts|tsx)$/,
// Add every dir... | 6,526 |
0 | petrpan-code/Shopify/react-native-skia | petrpan-code/Shopify/react-native-skia/example/yarn.lock | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@ampproject/remapping@^2.1.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d"
integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAas... | 6,527 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/.bundle/config | BUNDLE_PATH: "vendor/bundle"
BUNDLE_FORCE_RUBY_PLATFORM: 1
| 6,528 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/android/build.gradle | // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
// We use NDK 23 which has both M1 support and is the side-by... | 6,529 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/android/gradle.properties | # Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies ... | 6,530 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/android/gradlew | #!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 6,531 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/android/gradlew.bat | @rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unles... | 6,532 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/android/settings.gradle | rootProject.name = 'RNSkia'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
includeBuild('../node_modules/react-native-gradle-plugin')
| 6,533 |
0 | petrpan-code/Shopify/react-native-skia/example/android | petrpan-code/Shopify/react-native-skia/example/android/app/build.gradle | apply plugin: "com.android.application"
apply plugin: "com.facebook.react"
import com.android.build.OutputFile
/**
* This is the configuration block to customize your React Native Android app.
* By default you don't need to apply any configuration, just uncomment the lines you need.
*/
react {
/* Folders */
... | 6,534 |
0 | petrpan-code/Shopify/react-native-skia/example/android | petrpan-code/Shopify/react-native-skia/example/android/app/proguard-rules.pro | # Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# ... | 6,535 |
0 | petrpan-code/Shopify/react-native-skia/example/android/app/src | petrpan-code/Shopify/react-native-skia/example/android/app/src/debug/AndroidManifest.xml | <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application
android:usesCleartextTraffic="true"
tools:target... | 6,536 |
0 | petrpan-code/Shopify/react-native-skia/example/android/app/src/debug/java/com | petrpan-code/Shopify/react-native-skia/example/android/app/src/debug/java/com/rnskia/ReactNativeFlipper.java | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.rnskia;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
import com.face... | 6,537 |
0 | petrpan-code/Shopify/react-native-skia/example/android/app/src | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/AndroidManifest.xml | <manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:allowBackup="false"
androi... | 6,538 |
0 | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/java/com | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/java/com/rnskia/MainActivity.java | package com.rnskia;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
import com.facebook.react.defaults.DefaultReactActivityDelegate;
public class MainActivity extends ReactActivity {
/**
* Returns the ... | 6,539 |
0 | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/java/com | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/java/com/rnskia/MainApplication.java | package com.rnskia;
import android.app.Application;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
import com.facebook.react.defaul... | 6,540 |
0 | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/res | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/res/drawable/rn_edit_text_material.xml | <?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/license... | 6,541 |
0 | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/res | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/res/values/strings.xml | <resources>
<string name="app_name">Skia Example</string>
</resources>
| 6,542 |
0 | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/res | petrpan-code/Shopify/react-native-skia/example/android/app/src/main/res/values/styles.xml | <resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
</style>
</resources>
| 6,543 |
0 | petrpan-code/Shopify/react-native-skia/example/android/app/src/release/java/com | petrpan-code/Shopify/react-native-skia/example/android/app/src/release/java/com/rnskia/ReactNativeFlipper.java | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.rnskia;
import android.content.Context;
import com.facebook.react.ReactInstanceManager;
/**
* Class responsible... | 6,544 |
0 | petrpan-code/Shopify/react-native-skia/example/android/gradle | petrpan-code/Shopify/react-native-skia/example/android/gradle/wrapper/gradle-wrapper.properties | distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
| 6,545 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/ios/.xcode.env | export NODE_BINARY=$(command -v node)
| 6,546 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/ios/Podfile | require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, min_ios_version_supported
prepare_react_native_project!
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIP... | 6,547 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/ios/Podfile.lock | PODS:
- boost (1.76.0)
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
- FBLazyVector (0.71.7)
- FBReactNativeSpec (0.71.7):
- RCT-Folly (= 2021.07.22.00)
- RCTRequired (= 0.71.7)
- RCTTypeSafety (= 0.71.7)
- React-Core (= 0.71.7)
- React-jsi (= 0.71.7)
- ReactCommon/turbomodule/... | 6,548 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/ios/_xcode.env | # This `.xcode.env` file is versioned and is used to source the environment
# used when running script phases inside Xcode.
# To customize your local environment, you can create an `.xcode.env.local`
# file that is not versioned.
# NODE_BINARY variable contains the PATH to the node executable.
#
# Customize the NODE_B... | 6,549 |
0 | petrpan-code/Shopify/react-native-skia/example/ios | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia.xcworkspace/contents.xcworkspacedata | <?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:RNSkia.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
<FileRef
location = "group:rnskia.xcodeproj">
</FileRef>
</Workspace>
| 6,550 |
0 | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia.xcworkspace | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
| 6,551 |
0 | petrpan-code/Shopify/react-native-skia/example/ios | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/AppDelegate.h | #import <RCTAppDelegate.h>
#import <UIKit/UIKit.h>
@interface AppDelegate : RCTAppDelegate
@end
| 6,552 |
0 | petrpan-code/Shopify/react-native-skia/example/ios | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/AppDelegate.mm | #import "AppDelegate.h"
#import <React/RCTBundleURLProvider.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"RNSkia";
// You can add your custom initial props in the dictionary below.
// They will b... | 6,553 |
0 | petrpan-code/Shopify/react-native-skia/example/ios | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/Info.plist | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Skia Example</string>
<key>CFBundleExecutable</k... | 6,554 |
0 | petrpan-code/Shopify/react-native-skia/example/ios | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/LaunchScreen.storyboard | <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19455" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewC... | 6,555 |
0 | petrpan-code/Shopify/react-native-skia/example/ios | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/main.m | #import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
| 6,556 |
0 | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/Images.xcassets/Contents.json | {
"info" : {
"author" : "xcode",
"version" : 1
}
}
| 6,557 |
0 | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/Images.xcassets | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/Images.xcassets/AppIcon.appiconset/Contents.json | {"images":[{"size":"60x60","expected-size":"180","filename":"180.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"40x40","expected-size":"120"... | 6,558 |
0 | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/Images.xcassets | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/Images.xcassets/Logo.imageset/Contents.json | {
"images" : [
{
"filename" : "1024-2.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "1024-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "1024.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
... | 6,559 |
0 | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/Images.xcassets | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/Images.xcassets/skia_logo.imageset/Contents.json | {
"images" : [
{
"filename" : "1024-2.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "1024-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "1024.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
... | 6,560 |
0 | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/Images.xcassets | petrpan-code/Shopify/react-native-skia/example/ios/RNSkia/Images.xcassets/skia_logo_jpeg.imageset/Contents.json | {
"images" : [
{
"filename" : "1024 1.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "1024 2.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "1024.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
... | 6,561 |
0 | petrpan-code/Shopify/react-native-skia/example/ios | petrpan-code/Shopify/react-native-skia/example/ios/RNSkiaTests/Info.plist | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifi... | 6,562 |
0 | petrpan-code/Shopify/react-native-skia/example/ios | petrpan-code/Shopify/react-native-skia/example/ios/RNSkiaTests/RNSkiaTests.m | #import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
#import <React/RCTLog.h>
#import <React/RCTRootView.h>
#define TIMEOUT_SECONDS 600
#define TEXT_TO_LOOK_FOR @"Welcome to React"
@interface RNSkiaTests : XCTestCase
@end
@implementation RNSkiaTests
- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView ... | 6,563 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/src/App.spec.tsx | import "react-native";
import React from "react";
// Test renderer must be required after react-native.
import { cleanup, render } from "@testing-library/react-native";
import App from "./App";
it("renders correctly", () => {
render(<App />);
});
afterEach(cleanup);
| 6,564 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/src/App.tsx | import type { LinkingOptions } from "@react-navigation/native";
import { NavigationContainer, useNavigation } from "@react-navigation/native";
import React from "react";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { StatusBar } from "react-native";
import type { HeaderBackButtonP... | 6,565 |
0 | petrpan-code/Shopify/react-native-skia/example | petrpan-code/Shopify/react-native-skia/example/src/types.ts | export type StackParamList = {
Tests: {
title?: string;
path?: string[];
};
Home: undefined;
Vertices: undefined;
API: undefined;
Breathe: undefined;
Filters: undefined;
Gooey: undefined;
Hue: undefined;
Matrix: undefined;
Severance: undefined;
Aurora: undefined;
Glassmorphism: undefin... | 6,566 |
0 | petrpan-code/Shopify/react-native-skia/example/src | petrpan-code/Shopify/react-native-skia/example/src/Examples/Examples.test.tsx | import "react-native";
import React from "react";
// Test renderer must be required after react-native.
import { cleanup, render } from "@testing-library/react-native";
import { Breathe } from "./Breathe";
import { Gooey } from "./Gooey";
import { Aurora } from "./Aurora";
import { Wallet } from "./Wallet";
import { V... | 6,567 |
0 | petrpan-code/Shopify/react-native-skia/example/src | petrpan-code/Shopify/react-native-skia/example/src/Examples/index.ts | export * from "./Reanimated";
export * from "./API";
export * from "./Breathe";
export * from "./Filters";
export * from "./Gooey";
export * from "./Matrix";
export * from "./Graphs";
export * from "./API";
export * from "./Breathe";
export * from "./Filters";
export * from "./Gooey";
export * from "./Hue";
export * fr... | 6,568 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/AnimatedImages.tsx | import React from "react";
import { ScrollView, useWindowDimensions } from "react-native";
import {
Canvas,
Image,
useAnimatedImageValue,
} from "@shopify/react-native-skia";
export const AnimatedImages = () => {
const { width: wWidth } = useWindowDimensions();
const SIZE = wWidth / 3;
const S2 = 60;
con... | 6,569 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/BlendModes.tsx | /* eslint-disable max-len */
import React from "react";
import {
BlendMode,
Canvas,
Circle,
Group,
Path,
Skia,
Text,
useFont,
enumKey,
} from "@shopify/react-native-skia";
const r = 50;
const blendModes = [
"clear",
"src",
"dst",
"srcOver",
"dstOver",
"srcIn",
"dstIn",
"srcOut",
"d... | 6,570 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Clipping.tsx | import React, { useMemo } from "react";
import { ScrollView, useWindowDimensions } from "react-native";
import {
Skia,
Canvas,
Image,
Group,
Circle,
Rect,
Mask,
useImage,
mix,
} from "@shopify/react-native-skia";
import { useDerivedValue } from "react-native-reanimated";
import { useLoop } from "../.... | 6,571 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/ColorFilter.tsx | import React, { useMemo } from "react";
import { ScrollView, useWindowDimensions } from "react-native";
import {
Skia,
useDrawCallback,
SkiaView,
PaintStyle,
useImage,
TileMode,
Canvas,
Group,
BlendColor,
Circle,
Image,
Lerp,
ColorMatrix,
LinearToSRGBGamma,
SRGBToLinearGamma,
} from "@shop... | 6,572 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Data.tsx | import React from "react";
import { useWindowDimensions } from "react-native";
import {
AlphaType,
Canvas,
ColorType,
Image,
Skia,
} from "@shopify/react-native-skia";
const pixels = new Uint8Array(256 * 256 * 4);
pixels.fill(255);
let i = 0;
for (let x = 0; x < 256 * 4; x++) {
for (let y = 0; y < 256 * 4;... | 6,573 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/FontMgr.tsx | import React from "react";
import { ScrollView, useWindowDimensions } from "react-native";
import {
Canvas,
Skia,
Text,
matchFont,
useFonts,
} from "@shopify/react-native-skia";
const PADDING = 16;
const titleFontSize = 32;
const titleText = "Fonts from the System";
const titleY = titleFontSize + PADDING;
... | 6,574 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Freeze.tsx | import React from "react";
import {
useFont,
Canvas,
Group,
Rect,
Text,
useClock,
} from "@shopify/react-native-skia";
import { useDerivedValue } from "react-native-reanimated";
const size = 200;
const n = 49;
export const FreezeExample = () => {
const font = useFont(require("../../assets/SF-Mono-Semibo... | 6,575 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Gradients.tsx | import React, { useMemo } from "react";
import { ScrollView, useWindowDimensions } from "react-native";
import {
bottomRight,
center,
topLeft,
Skia,
rect,
Canvas,
Rect,
LinearGradient,
RadialGradient,
TwoPointConicalGradient,
SweepGradient,
vec,
Turbulence,
ColorShader,
Blend,
} from "@sho... | 6,576 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/ImageFilters.tsx | import {
Fill,
Image,
Offset,
Text,
useImage,
Morphology,
Group,
DisplacementMap,
Turbulence,
RuntimeShader,
Circle,
Skia,
useFont,
} from "@shopify/react-native-skia";
import React from "react";
import { Examples, SIZE } from "./components/Examples";
const DisplacementMapDemo = () => {
co... | 6,577 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Images.tsx | import React, { useMemo } from "react";
import { ScrollView, useWindowDimensions } from "react-native";
import { useImage, Canvas, Image, Rect } from "@shopify/react-native-skia";
import { Title } from "./components/Title";
const fits = [
"contain",
"fill",
"cover",
"fitHeight",
"fitWidth",
"scaleDown",
... | 6,578 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/List.tsx | import * as React from "react";
import { ScrollView, StyleSheet, Text, View, Pressable } from "react-native";
import { useNavigation } from "@react-navigation/native";
import type { NativeStackNavigationProp } from "@react-navigation/native-stack";
import type { Routes } from "./Routes";
export const examples = [
{... | 6,579 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/OnLayout.tsx | import React, { useState } from "react";
import type { LayoutRectangle } from "react-native";
import { Text } from "react-native";
import { Canvas, Fill } from "@shopify/react-native-skia";
export const OnLayoutDemo = () => {
const [layout, setLayout] = useState<LayoutRectangle>();
return (
<>
<Text>{`On... | 6,580 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Path.tsx | /* eslint-disable max-len */
import React, { useMemo } from "react";
import {
StyleSheet,
ScrollView,
View,
useWindowDimensions,
Platform,
} from "react-native";
import {
Skia,
PathOp,
Canvas,
Path,
Group,
rect,
TextPath,
useFont,
FitBox,
usePathInterpolation,
} from "@shopify/react-native... | 6,581 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/PathEffect.tsx | import React, { useMemo } from "react";
import { ScrollView, useWindowDimensions } from "react-native";
import type { Vector } from "@shopify/react-native-skia";
import {
Rect,
transformOrigin,
sub,
Canvas,
Circle,
translate,
Skia,
PaintStyle,
DiscretePathEffect,
DashPathEffect,
CornerPathEffect,
... | 6,582 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Picture.tsx | import React, { useMemo } from "react";
import { StyleSheet } from "react-native";
import {
createPicture,
Canvas,
Picture,
Skia,
Group,
} from "@shopify/react-native-skia";
// Create picture
const picture = createPicture(
{ x: 0, y: 0, width: 100, height: 100 },
(canvas) => {
const paint = Skia.Pain... | 6,583 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/PictureView.tsx | import React, { useMemo } from "react";
import { StyleSheet } from "react-native";
import {
createPicture,
Skia,
SkiaPictureView,
} from "@shopify/react-native-skia";
export const PictureViewExample = () => {
// Create picture
const picture = useMemo(
() =>
createPicture({ x: 0, y: 0, width: 100, h... | 6,584 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Routes.ts | export type Routes = {
Images: undefined;
AnimatedImages: undefined;
List: undefined;
Shapes: undefined;
PathEffect: undefined;
Path: undefined;
Clipping: undefined;
Transform: undefined;
ColorFilter: undefined;
ImageFilters: undefined;
Gradients: undefined;
SVG: undefined;
Touch: undefined;
... | 6,585 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/SVG.tsx | import React from "react";
import { useWindowDimensions } from "react-native";
import { Canvas, ImageSVG, useSVG } from "@shopify/react-native-skia";
export const SVG = () => {
const { width, height } = useWindowDimensions();
const svg = useSVG(require("./tiger.svg"));
return (
<Canvas style={{ flex: 1 }}>
... | 6,586 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Shapes.tsx | import React, { useMemo } from "react";
import { ScrollView, PixelRatio, useWindowDimensions } from "react-native";
import {
Skia,
PaintStyle,
Canvas,
Rect,
DiffRect,
Group,
Oval,
Line,
Points,
vec,
rect,
rrect,
Paint,
DashPathEffect,
Vertices,
RoundedRect,
Patch,
} from "@shopify/reac... | 6,587 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Snapshot.tsx | import React, { useCallback, useRef, useState } from "react";
import {
View,
StyleSheet,
Button,
Text,
useWindowDimensions,
ScrollView,
} from "react-native";
import type { SkImage } from "@shopify/react-native-skia";
import {
Canvas,
Fill,
Skia,
RoundedRect,
makeImageFromView,
mix,
Shader,
... | 6,588 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Touch.tsx | import React from "react";
import { StyleSheet, View } from "react-native";
import type { SkPicture, SkSize } from "@shopify/react-native-skia";
import {
Group,
Fill,
Canvas,
Picture,
Skia,
PaintStyle,
} from "@shopify/react-native-skia";
import type { TouchData } from "react-native-gesture-handler";
import... | 6,589 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Transform.tsx | import React, { useMemo } from "react";
import { ScrollView, useWindowDimensions } from "react-native";
import {
Skia,
useDrawCallback,
SkiaView,
PaintStyle,
useImage,
} from "@shopify/react-native-skia";
import { Title } from "./components/Title";
const card = require("../../assets/card.png");
const paint... | 6,590 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/UseCanvas.tsx | import type { SkSize } from "@shopify/react-native-skia";
import { Canvas, Fill, Group, Rect, rect } from "@shopify/react-native-skia";
import React, { useEffect, useRef } from "react";
import { View, Animated } from "react-native";
import { useNavigation } from "@react-navigation/native";
import { useContextBridge } f... | 6,591 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/index.tsx | import React from "react";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import type { Routes } from "./Routes";
import { List } from "./List";
import { PathEffectDemo } from "./PathEffect";
import { Shapes } from "./Shapes";
import { Clipping } from "./Clipping";
import { Transform } fr... | 6,592 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/tiger.svg | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg id="svg2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 900" version="1.1">
<g id="g4" fill="none" transform="matrix(1.7656463,0,0,1.7656463,324.90716,255.00942)">
<g id="g6" stroke-width="0.17200001" stroke="#000" fill="#FFF">
<path id="path8" d="... | 6,593 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples/API | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Icons/index.tsx | import React, { createContext, useContext, useMemo } from "react";
import { Text, View } from "react-native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import type { SkPicture } from "@shopify/react-native-skia";
import {
Canvas,
Rect,
SkiaPictureView,
Skia,
useSVG,
} from "@sh... | 6,594 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Icons | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Icons/SvgIcons/GithubIcon.tsx | /* eslint-disable max-len */
import * as React from "react";
import Svg, { Path } from "react-native-svg";
export const Github = () => (
<Svg width={48} height={48}>
<Path
fill="#fff"
d="M41 24c0 9.4-7.6 17-17 17S7 33.4 7 24 14.6 7 24 7s17 7.6 17 17z"
/>
<Path
fill="#455a64"
d="M21... | 6,595 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Icons | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Icons/SvgIcons/OctocatIcon.tsx | /* eslint-disable max-len */
import * as React from "react";
import Svg, { Path } from "react-native-svg";
export const Octocat = () => (
<Svg width={48} height={48}>
<Path
fill="#455A64"
d="M40.3 15.7c.6-1.7 1.2-5-.4-8.7-4.5 0-8.3 3.2-8.9 3.8-2.2-.5-4.6-.7-7-.7-2.5 0-4.9.3-7.2.8C13.7 7.7 9.6 7 8 7c0 ... | 6,596 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Icons | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Icons/SvgIcons/StackExchangeIcon.tsx | import * as React from "react";
import Svg, { Path } from "react-native-svg";
export const StackExchange = () => (
<Svg width={48} height={48}>
<Path fill="#33afec" d="M6 13v7h25.2l6.4-7H6z" />
<Path fill="#0084d7" d="M6 22v7h17.1l6.3-7H6z" />
<Path fill="#0262b8" d="M6 31v2c0 3.3 2.7 6 6 6h2l7.3-8H6z" />... | 6,597 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Icons | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/Icons/SvgIcons/StackOverflowIcon.tsx | /* eslint-disable max-len */
import * as React from "react";
import Svg, { Path } from "react-native-svg";
export const StackOverflow = () => (
<Svg width={48} height={48}>
<Path
fill="#727d86"
d="M32 28.5V39H12V28.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5V41a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V28.5a.5.5 0 0 0... | 6,598 |
0 | petrpan-code/Shopify/react-native-skia/example/src/Examples/API | petrpan-code/Shopify/react-native-skia/example/src/Examples/API/components/Examples.tsx | import type { ReactChild, ReactFragment, ReactPortal } from "react";
import React, { Children } from "react";
import { ScrollView } from "react-native";
import { Canvas } from "@shopify/react-native-skia";
import { ExportableCanvas } from "../../../components/ExportableCanvas";
export const SIZE = 256;
type Child = ... | 6,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.