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/yang991178/fluent-reader/src
petrpan-code/yang991178/fluent-reader/src/scripts/reducer.ts
import { combineReducers } from "redux" import { sourceReducer } from "./models/source" import { itemReducer } from "./models/item" import { feedReducer } from "./models/feed" import { appReducer } from "./models/app" import { groupReducer } from "./models/group" import { pageReducer } from "./models/page" import { se...
6,400
0
petrpan-code/yang991178/fluent-reader/src
petrpan-code/yang991178/fluent-reader/src/scripts/settings.ts
import * as db from "./db" import { IPartialTheme, loadTheme } from "@fluentui/react" import locales from "./i18n/_locales" import { ThemeSettings } from "../schema-types" import intl from "react-intl-universal" import { SourceTextDirection } from "./models/source" let lightTheme: IPartialTheme = { defaultFontStyl...
6,401
0
petrpan-code/yang991178/fluent-reader/src
petrpan-code/yang991178/fluent-reader/src/scripts/utils.ts
import intl from "react-intl-universal" import { ThunkAction, ThunkDispatch } from "redux-thunk" import { AnyAction } from "redux" import { RootState } from "./reducer" import Parser from "rss-parser" import Url from "url" import { SearchEngines } from "../schema-types" export enum ActionStatus { Request, Succ...
6,402
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/README.md
## Internationalization Currently, Fluent Reader supports the following languages. | Locale | Language | Credit | | --- | --- | --- | | en-US | English | [@yang991178](https://github.com/yang991178) | | cs | Čeština | [@vikdevelop](https://github.com/vikdevelop) | | es | Español | [@kant](https://github.com/kant) | |...
6,403
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/_locales.ts
import en_US from "./en-US.json" import cs from "./cs.json" import zh_CN from "./zh-CN.json" import zh_TW from "./zh-TW.json" import ja from "./ja.json" import fr_FR from "./fr-FR.json" import de from "./de.json" import nl from "./nl.json" import es from "./es.json" import sv from "./sv.json" import tr from "./tr.json"...
6,404
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/cs.json
{ "allArticles": "Všechny články", "add": "Přidat", "create": "Vytvořit", "icon": "Ikona", "name": "Název", "openExternal": "Otevřít externě", "emptyName": "Toto pole nesmí být prázdné.", "emptyField": "Toto pole nesmí být prázdné.", "edit": "Upravit", "delete": "Odstranit", ...
6,405
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/de.json
{ "allArticles": "Alle Artikel", "add": "Hinzufügen", "create": "Erstellen", "icon": "Icon", "name": "Name", "openExternal": "Extern öffnen", "emptyName": "Dieses Feld darf nicht leer sein.", "emptyField": "Dieses Feld darf nicht leer sein.", "edit": "Bearbeiten", "delete": "Entf...
6,406
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/en-US.json
{ "allArticles": "All articles", "add": "Add", "create": "Create", "icon": "Icon", "name": "Name", "openExternal": "Open externally", "emptyName": "This field cannot be empty.", "emptyField": "This field cannot be empty.", "edit": "Edit", "delete": "Delete", "followSystem": "...
6,407
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/es.json
{ "allArticles": "Todos los artículos", "add": "Agregar", "create": "Crear", "icon": "Icono", "name": "Nombre", "openExternal": "Abrir de modo externo", "emptyName": "Este campo no puede estar vacío.", "emptyField": "Este campo no puede estar vacío.", "edit": "Modificar", "delete...
6,408
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/fi-FI.json
{ "add": "Lisää", "allArticles": "Kaikki artikkelit", "app": { "backup": "Varmuuskopiointi", "badUrl": "Virheellinen URL", "cache": "Tyhjennä välimuisti", "cacheSize": "Välimuistissa on {size} dataa", "calculatingSize": "Lasketaan kokoa...", "cleanup": "Siivoa...
6,409
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/fr-FR.json
{ "allArticles": "Tous les articles", "add": "Ajouter", "create": "Créer", "icon": "Icône", "name": "Nom", "openExternal": "Ouvrir dans le navigateur", "emptyName": "Ce champ ne peut pas être vide.", "emptyField": "Ce champ ne peut pas être vide.", "edit": "Modifier", "delete": "...
6,410
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/it.json
{ "allArticles": "Tutti gli articoli", "add": "Aggiungi", "create": "Crea", "icon": "Icona", "name": "Nome", "openExternal": "Apri Esternamente", "emptyName": "Questo campo non puo essere vuoto", "emptyField": "Questo campo non puo essere vuoto", "edit": "Modifica", "delete": "El...
6,411
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/ja.json
{ "allArticles": "全ての記事", "add": "追加", "create": "新規", "icon": "アイコン", "name": "名称", "openExternal": "ブラウザで開く", "emptyName": "名称を入力してください。", "emptyField": "このフィールドは空にできません。", "edit": "編集", "delete": "削除", "followSystem": "システム設定に従う", "more": "さらに詳しく", "close": "閉じる", ...
6,412
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/ko.json
{ "allArticles": "모든 글", "add": "추가", "create": "생성", "icon": "아이콘", "name": "이름", "openExternal": "브라우저를 통해 열기", "emptyName": "이 칸은 비어있을 수 없습니다.", "emptyField": "이 칸은 비어있을 수 없습니다.", "edit": "수정", "delete": "삭제", "followSystem": "시스템 설정에 따름", "more": "더 보기", "close": ...
6,413
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/nl.json
{ "allArticles": "Alle artikelen", "add": "Toevoegen", "create": "Maken", "icon": "Pictogram", "name": "Naam", "openExternal": "Openen in webbrowser", "emptyName": "Dit veld mag niet blanco zijn.", "emptyField": "Dit veld mag niet blanco zijn.", "edit": "Bewerken", "delete": "Ver...
6,414
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/pt-BR.json
{ "allArticles": "Todos os artigos", "add": "Adicionar", "create": "Criar", "icon": "Ícone", "name": "Nome", "openExternal": "Abrir externamente", "emptyName": "Este campo não pode ficar vazio.", "emptyField": "Este campo não pode ficar vazio.", "edit": "Editar", "delete": "Delet...
6,415
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/pt-PT.json
{ "allArticles": "Todos os artigos", "add": "Adicionar", "create": "Criar", "icon": "Ícone", "name": "Nome", "openExternal": "Abrir externamente", "emptyName": "Este campo não pode ficar vazio.", "emptyField": "Este campo não pode ficar vazio.", "edit": "Editar", "delete": "Elimi...
6,416
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/ru.json
{ "allArticles": "Все статьи", "add": "Добавить", "create": "Создать", "icon": "Иконка", "name": "Название", "openExternal": "Открыть внешней программой", "emptyName": "Это поле не может быть пустым.", "emptyField": "Это поле не может быть пустым.", "edit": "Редактировать", "dele...
6,417
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/sv.json
{ "allArticles": "Alla artiklar", "add": "Lägg till", "create": "Skapa", "icon": "Ikon", "name": "Namn", "openExternal": "Öppna externt", "emptyName": "Detta fält kan inte vara tomt.", "emptyField": "Detta fält kan inte vara tomt.", "edit": "Redigera", "delete": "Ta bort", "f...
6,418
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/tr.json
{ "allArticles": "Tüm Yazılar", "add": "Ekle", "create": "Ekle", "icon": "Simge", "name": "Ad", "openExternal": "Yeni pencerede aç", "emptyName": "Bu alan boş olamaz.", "emptyField": "Bu alan boş olamaz.", "edit": "Düzenle", "delete": "Sil", "followSystem": "Sistem ayarlarını...
6,419
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/uk.json
{ "allArticles": "Всі статті", "add": "Додати", "create": "Створити", "icon": "Іконка", "name": "Ім'я", "openExternal": "Відкрити зовні", "emptyName": "Це поле не може бути порожнім.", "emptyField": "Це поле не може бути порожнім.", "edit": "Редагувати", "delete": "Видалити", ...
6,420
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/zh-CN.json
{ "allArticles": "全部文章", "add": "添加", "create": "新建", "icon": "图标", "name": "名称", "openExternal": "在浏览器中打开", "emptyName": "名称不得为空", "emptyField": "此项不得为空", "edit": "编辑", "delete": "删除", "followSystem": "跟随系统", "more": "更多", "close": "关闭", "search": "搜索", "load...
6,421
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/i18n/zh-TW.json
{ "allArticles": "全部文章", "add": "新增", "create": "新建", "icon": "圖示", "name": "名稱", "openExternal": "在瀏覽器中開啟", "emptyName": "名稱不得為空", "emptyField": "此項不得為空", "edit": "編輯", "delete": "刪除", "followSystem": "跟隨系統", "more": "更多", "close": "關閉", "search": "搜尋", "load...
6,422
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/models/app.ts
import intl from "react-intl-universal" import { INIT_SOURCES, SourceActionTypes, ADD_SOURCE, UPDATE_SOURCE, DELETE_SOURCE, initSources, SourceOpenTarget, updateFavicon, } from "./source" import { RSSItem, ItemActionTypes, FETCH_ITEMS, fetchItems } from "./item" import { ActionStatus...
6,423
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/models/feed.ts
import * as db from "../db" import lf from "lovefield" import { SourceActionTypes, INIT_SOURCES, ADD_SOURCE, DELETE_SOURCE, UNHIDE_SOURCE, HIDE_SOURCE, } from "./source" import { ItemActionTypes, FETCH_ITEMS, RSSItem, TOGGLE_HIDDEN, applyItemReduction, } from "./item" import ...
6,424
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/models/group.ts
import intl from "react-intl-universal" import { SourceActionTypes, ADD_SOURCE, DELETE_SOURCE, addSource, RSSSource, SourceState, } from "./source" import { SourceGroup } from "../../schema-types" import { ActionStatus, AppThunk, domParser } from "../utils" import { saveSettings } from "./app" i...
6,425
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/models/item.ts
import * as db from "../db" import lf from "lovefield" import intl from "react-intl-universal" import type { MyParserItem } from "../utils" import { domParser, htmlDecode, ActionStatus, AppThunk, platformCtrl, } from "../utils" import { RSSSource, updateSource, updateUnreadCounts } from "./source" i...
6,426
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/models/page.ts
import { ALL, SOURCE, loadMore, FeedFilter, FilterType, initFeeds, FeedActionTypes, INIT_FEED, } from "./feed" import { getWindowBreakpoint, AppThunk, ActionStatus } from "../utils" import { RSSItem, markRead } from "./item" import { SourceActionTypes, DELETE_SOURCE } from "./source" imp...
6,427
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/models/rule.ts
import { FeedFilter, FilterType } from "./feed" import { RSSItem } from "./item" export const enum ItemAction { Read = "r", Star = "s", Hide = "h", Notify = "n", } export type RuleActions = { [type in ItemAction]: boolean } export namespace RuleActions { export function toKeys(actions: RuleAct...
6,428
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/models/service.ts
import * as db from "../db" import lf from "lovefield" import { SyncService, ServiceConfigs } from "../../schema-types" import { AppThunk, ActionStatus } from "../utils" import { RSSItem, insertItems, fetchItemsSuccess } from "./item" import { saveSettings, pushNotification } from "./app" import { deleteSource, ...
6,429
0
petrpan-code/yang991178/fluent-reader/src/scripts
petrpan-code/yang991178/fluent-reader/src/scripts/models/source.ts
import intl from "react-intl-universal" import * as db from "../db" import lf from "lovefield" import { fetchFavicon, ActionStatus, AppThunk, parseRSS, MyParserItem, } from "../utils" import { RSSItem, insertItems, ItemActionTypes, FETCH_ITEMS, MARK_READ, MARK_UNREAD, MAR...
6,430
0
petrpan-code/yang991178/fluent-reader/src/scripts/models
petrpan-code/yang991178/fluent-reader/src/scripts/models/services/feedbin.ts
import intl from "react-intl-universal" import * as db from "../../db" import lf from "lovefield" import { ServiceHooks } from "../service" import { ServiceConfigs, SyncService } from "../../../schema-types" import { createSourceGroup } from "../group" import { RSSSource } from "../source" import { domParser } from ".....
6,431
0
petrpan-code/yang991178/fluent-reader/src/scripts/models
petrpan-code/yang991178/fluent-reader/src/scripts/models/services/fever.ts
import intl from "react-intl-universal" import { ServiceHooks } from "../service" import { ServiceConfigs, SyncService } from "../../../schema-types" import { createSourceGroup } from "../group" import { RSSSource } from "../source" import { htmlDecode, domParser } from "../../utils" import { RSSItem } from "../item" i...
6,432
0
petrpan-code/yang991178/fluent-reader/src/scripts/models
petrpan-code/yang991178/fluent-reader/src/scripts/models/services/greader.ts
import intl from "react-intl-universal" import * as db from "../../db" import lf from "lovefield" import { ServiceHooks } from "../service" import { ServiceConfigs, SyncService } from "../../../schema-types" import { createSourceGroup } from "../group" import { RSSSource } from "../source" import { RSSItem } from "../i...
6,433
0
petrpan-code/yang991178/fluent-reader/src/scripts/models
petrpan-code/yang991178/fluent-reader/src/scripts/models/services/miniflux.ts
import intl from "react-intl-universal" import * as db from "../../db" import lf from "lovefield" import { ServiceHooks } from "../service" import { ServiceConfigs, SyncService } from "../../../schema-types" import { createSourceGroup } from "../group" import { RSSSource } from "../source" import { domParser, htmlDecod...
6,434
0
petrpan-code/yang991178/fluent-reader/src/scripts/models
petrpan-code/yang991178/fluent-reader/src/scripts/models/services/nextcloud.ts
import intl from "react-intl-universal" import * as db from "../../db" import lf from "lovefield" import { ServiceHooks } from "../service" import { ServiceConfigs, SyncService } from "../../../schema-types" import { createSourceGroup } from "../group" import { RSSSource } from "../source" import { domParser } from ".....
6,435
0
petrpan-code/Shopify
petrpan-code/Shopify/react-native-skia/BUILDING.md
# Building Instructions for how to set up and build the library for development is available in the README.md file. ## CI This project has two CI jobs set up to run as Github workflows. ### build-skia.yml This workflow builds the Skia Binaries from the main branch whenever the main branch is changed - and only if ...
6,436
0
petrpan-code/Shopify
petrpan-code/Shopify/react-native-skia/LICENSE.md
Copyright 2021-present, Shopify Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, ...
6,437
0
petrpan-code/Shopify
petrpan-code/Shopify/react-native-skia/README.md
# React Native Skia High-performance 2d Graphics for React Native using Skia [![Tests](https://github.com/Shopify/react-native-skia/actions/workflows/tests.yml/badge.svg)](https://github.com/Shopify/react-native-skia/actions/workflows/tests.yml) [![npm version](https://img.shields.io/npm/v/@shopify/react-native-skia....
6,438
0
petrpan-code/Shopify
petrpan-code/Shopify/react-native-skia/package.json
{ "name": "react-native-skia-dev-tools", "version": "1.0.0", "description": "## Getting started", "main": "index.js", "directories": { "example": "example" }, "devDependencies": { "@types/node": "^16.11.7", "clang-format": "^1.6.0", "rimraf": "^3.0.2", "ts-node": "^10.4.0", "typesc...
6,439
0
petrpan-code/Shopify
petrpan-code/Shopify/react-native-skia/tsconfig.json
{ "compilerOptions": { /* Visit https://aka.ms/tsconfig.json to read more about this file */ /* Projects */ // "incremental": true, /* Enable incremental compilation */ // "composite": true, /* Enable constraints that allow a TypeScript proj...
6,440
0
petrpan-code/Shopify
petrpan-code/Shopify/react-native-skia/yarn.lock
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. # yarn lockfile v1 "@cspotcode/source-map-support@^0.8.0": version "0.8.1" resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" integrity sha512-IchNf6dN4tHoM...
6,441
0
petrpan-code/Shopify/react-native-skia
petrpan-code/Shopify/react-native-skia/.vscode/launch.json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Launch Chrome", "request":...
6,442
0
petrpan-code/Shopify/react-native-skia
petrpan-code/Shopify/react-native-skia/docs/.eslintrc
{ "extends": "react-native-wcandillon", "rules": { "prefer-destructuring": [ "error", { "object": true, "array": false } ], "no-bitwise": "off", "no-var": "off", "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/no-non-null-assertion": "off", ...
6,443
0
petrpan-code/Shopify/react-native-skia
petrpan-code/Shopify/react-native-skia/docs/README.md
# Website This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. ### Installation ``` $ yarn ``` ### Local Development ``` $ yarn start ``` This command starts a local development server and opens up a browser window. Most changes are reflected live without having t...
6,444
0
petrpan-code/Shopify/react-native-skia
petrpan-code/Shopify/react-native-skia/docs/babel.config.js
module.exports = { presets: [require.resolve('@docusaurus/core/lib/babel/preset')], };
6,445
0
petrpan-code/Shopify/react-native-skia
petrpan-code/Shopify/react-native-skia/docs/docusaurus.config.js
// @ts-check // Note: type annotations allow type checking and IDEs autocompletion const lightCodeTheme = require("prism-react-renderer/themes/github"); const darkCodeTheme = require("prism-react-renderer/themes/dracula"); /** @type {import('@docusaurus/types').Config} */ const config = { title: "React Native Skia"...
6,446
0
petrpan-code/Shopify/react-native-skia
petrpan-code/Shopify/react-native-skia/docs/package.json
{ "name": "docs", "version": "0.0.0", "private": true, "scripts": { "docusaurus": "docusaurus", "start": "docusaurus start", "build": "docusaurus build", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", "clear": "docusaurus clear", "serve": "docusaurus serve", "wri...
6,447
0
petrpan-code/Shopify/react-native-skia
petrpan-code/Shopify/react-native-skia/docs/sidebars.js
/** * Creating a sidebar enables you to: - create an ordered group of docs - render a sidebar for each doc of that group - provide next/previous navigation The sidebars can be generated from the filesystem, or explicitly defined here. Create as many sidebars as you want. */ // @ts-check /** @type {import('@d...
6,448
0
petrpan-code/Shopify/react-native-skia
petrpan-code/Shopify/react-native-skia/docs/tsconfig.json
{ // This file is not used in compilation. It is here just for a nice editor experience. "extends": "@tsconfig/docusaurus/tsconfig.json", "compilerOptions": { "baseUrl": ".", "strict": true, "noUnusedLocals": true /* Report errors on unused locals. */, "noUnusedParameters": true /* Report errors o...
6,449
0
petrpan-code/Shopify/react-native-skia
petrpan-code/Shopify/react-native-skia/docs/yarn.lock
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. # yarn lockfile v1 "@aashutoshrathi/word-wrap@^1.2.3": version "1.2.6" resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf" integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A...
6,450
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/blog/authors.yml
chrfalch: name: Christian Falch title: React Native Skia Maintainer url: https://github.com/chrfalch image_url: https://github.com/chrfalch.png wcandillon: name: William Candillon title: React Native Skia Maintainer url: https://github.com/wcandillon image_url: https://github.com/wcandillon.png
6,451
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/animated-images.md
--- id: animated-images title: Animated Images sidebar_label: Animated Images slug: /animated-images --- React Native Skia supports animated images. Supported formats are GIF and animated WebP. ## Using Reanimated If you use Reanimated, we offer a `useAnimatedImageValue` hook that does everything automatically. `use...
6,452
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/backdrop-filters.md
--- id: backdrops-filters title: Backdrop Filters sidebar_label: Backdrop Filters slug: /backdrops-filters --- In Skia, backdrop filters are equivalent to their [CSS counterpart](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter). They allow you to apply image filters such as blurring to the area behind...
6,453
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/color-filters.md
--- id: color-filters title: Color Filters sidebar_label: Color Filters slug: /color-filters --- ## Color Matrix Creates a color filter using the provided color matrix. A playground to build color matrices is available [here](https://fecolormatrix.com/). | Name | Type | Description ...
6,454
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/group.md
--- id: group title: Group sidebar_label: Group slug: /group --- The Group component is an essential construct in React Native Skia. Group components can be deeply nested with one another. It can apply the following operations to its children: - [Paint properties](#paint-properties) - [Transformations](#transformatio...
6,455
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/image-svg.md
--- id: image-svg title: SVG Images sidebar_label: SVG slug: /images-svg --- Draw an SVG (see [SVG Support](#svg-support)). If the root dimensions are in absolute units, the width/height properties have no effect since the initial viewport is fixed. | Name | Type | Description ...
6,456
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/image.md
--- id: image title: Images sidebar_label: Image slug: /images --- ## Loading Images ### useImage Images are loaded using the `useImage` hook. This hook returns an `SkImage` instance, which can be passed to the `Image` component. Images can be loaded using require statements or by passing a network URL directly. It...
6,457
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/mask-filters.md
--- id: mask-filters title: Mask Filters sidebar_label: Mask Filters slug: /mask-filters --- Mask filters are effects that manipulate the geometry and alpha channel of graphical objects. ## BlurMask Creates a blur mask filter. | Name | Type | Description | |:...
6,458
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/mask.md
--- id: mask title: Mask sidebar_label: Mask slug: /mask --- The `Mask` component hides an element by masking the content at specific points. Just like its [CSS counterpart](https://developer.mozilla.org/en-US/docs/Web/CSS/mask), there are two modes available: * `alpha`: This mode indicates that the mask layer image's...
6,459
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/path-effects.md
--- id: path-effects title: Path Effects sidebar_label: Path Effects slug: /path-effects --- ## Discrete Path Effect Creates an effect that breaks a path into segments of a certain length and randomly moves the endpoints away from the original path by a maximum deviation. | Name | Type | Description ...
6,460
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/snapshot-views.md
--- id: snapshotviews title: Snapshot Views sidebar_label: Snapshot Views slug: /snapshotviews --- ## Creating Snapshots of Views The function `makeImageFromView` lets you take a snapshot of another React Native View as a Skia SkImage. The function accepts a ref to a native view and returns a promise that resolves to...
6,461
0
petrpan-code/Shopify/react-native-skia/docs
petrpan-code/Shopify/react-native-skia/docs/docs/tutorials.md
--- id: tutorials title: Tutorials sidebar_label: Tutorials slug: /tutorials --- Below is a list of tutorials sorted by category. Please [make a PR](https://github.com/Shopify/react-native-skia/edit/main/docs/docs/tutorials.md) if you would like to add entries to the list. ## Animations * [The Matrix Reacts (youtu.be...
6,462
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/animations/gestures.md
--- id: gestures title: Gestures sidebar_label: Gestures slug: /animations/gestures --- When integrating with [reanimated](/docs/animations/animations), we recommend using [react-native-gesture-handler](https://docs.swmansion.com/react-native-gesture-handler/docs/). We've prepared a few [tutorials](docs/tutorials#ges...
6,463
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/animations/hooks.md
--- id: hooks title: Hooks sidebar_label: Hooks slug: /animations/hooks --- ## useClock This hook returns a number indicating the time in milliseconds since the hook was activated. ```tsx twoslash import { Canvas, useClock, vec, Circle } from "@shopify/react-native-skia"; import { useDerivedValue } from "react-nativ...
6,464
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/animations/reanimated2.md
--- id: reanimated2 title: Reanimated 2 sidebar_label: Reanimated 2 slug: /animations/reanimated2 --- :::info The Reanimated 2 integration operates on the JS thread. We recommend using Reanimated 3 when possible for better performance and features. For more details, refer to the [Reanimated 3 support section](/docs/a...
6,465
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/animations/reanimated3.md
--- id: animations title: Reanimated 3 sidebar_label: Reanimated 3 slug: /animations/animations --- React Native Skia offers integration with [Reanimated v3](https://docs.swmansion.com/react-native-reanimated/), enabling the execution of animations on the UI thread. Note: This integration is available starting from R...
6,466
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/animations/textures.md
--- id: textures title: Textures sidebar_label: Textures slug: /animations/textures --- Reanimated 2 provides a [`runOnUI`](https://docs.swmansion.com/react-native-reanimated/docs/threading/runOnUI) function that enables the execution of JavaScript code on the UI thread. This function is particularly useful for creati...
6,467
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/canvas/canvas.md
--- id: canvas title: Canvas sidebar_label: Overview slug: /canvas/overview --- The Canvas component is the root of your Skia drawing. You can treat it as a regular React Native view and assign a view style. Behind the scenes, it is using its own React renderer. | Name | Type | Description. | |:-----|:-------...
6,468
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/canvas/contexts.md
--- id: contexts title: Contexts sidebar_label: Contexts slug: /canvas/contexts --- React Native Skia is using its own React renderer. It is currently impossible to automatically share a React context between two renderers. This means that a React Native context won't be available from your drawing directly. We recomm...
6,469
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/getting-started/Theme.tsx
import type { ReactNode } from "react"; import React, { useContext, createContext } from "react"; interface Theme { primary: string; } export const ThemeContext = createContext<Theme | null>(null); export const ThemeProvider = ({ primary, children, }: { primary: string; children: ReactNode; }) => ( <Them...
6,470
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/getting-started/bundle-size.md
--- id: bundle-size title: Bundle Size sidebar_label: Bundle Size slug: /getting-started/bundle-size --- Below is the app size increase to be expected when adding React Native Skia to your project. | iOS | Android | Web | | ---- | ------- | -------- | | 6 MB | 4 MB | 2.9 MB\* | \*This figure is the size of ...
6,471
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/getting-started/headless.md
--- id: headless title: Headless sidebar_label: Headless slug: /getting-started/headless --- Thanks to its offscreen capabilities, React Native Skia can run on Node. This means that you can use the Skia API to draw things that can be encoded and saved as images. By default, drawings will be executed on the CPU but it ...
6,472
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/getting-started/hello-world.md
--- id: hello-world title: Hello World sidebar_label: Hello World slug: /getting-started/hello-world --- React Native Skia provides a declarative API using its own React Renderer. ```tsx twoslash import React from "react"; import { Canvas, Circle, Group } from "@shopify/react-native-skia"; const App = () => { cons...
6,473
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/getting-started/installation.md
--- id: installation title: Installation sidebar_label: Installation slug: /getting-started/installation --- React Native Skia brings the [Skia Graphics Library](https://skia.org/) to React Native. Skia serves as the graphics engine for Google Chrome and Chrome OS, Android, Flutter, Mozilla Firefox, Firefox OS, and ma...
6,474
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/getting-started/web.mdx
--- id: web title: Web Support sidebar_label: Web slug: /getting-started/web --- import {Snack} from '@site/src/components/Snack'; React Native Skia runs in a web browser thanks to [CanvasKit](https://skia.org/docs/user/modules/canvaskit/), a WebAssembly build of Skia. The WebAssembly file is loaded asynchronously an...
6,475
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/image-filters/blur.md
--- id: blur title: Blur sidebar_label: Blur slug: /image-filters/blur --- Creates an image filter that blurs its input by the separate X and Y sigmas. The provided tile mode is used when the blur kernel goes outside the input image. | Name | Type | Description ...
6,476
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/image-filters/displacement-map.md
--- id: displacement-map title: Displacement Map sidebar_label: Displacement Map slug: /image-filters/displacement-map --- The displacement map image filter is identical to its [SVG counterpart](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDisplacementMap). The pixel values from the child image are used ...
6,477
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/image-filters/morphology.md
--- id: morphology title: Morphology sidebar_label: Morphology slug: /image-filters/morphology --- The morphology image filter is identical to its [SVG counterpart](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMorphology). It is used to erode or dilate the input image. Its usefulness lies primarily in fa...
6,478
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/image-filters/offset.md
--- id: offset title: Offset sidebar_label: Offset slug: /image-filters/offset --- This offset filter is identical to its [SVG counterpart](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feOffset). It allows offsetting the filtered image. | Name | Type | Description ...
6,479
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/image-filters/overview.md
--- id: overview title: Image Filters sidebar_label: Overview slug: /image-filters/overview --- Image filters are effects that operate on all the color bits of pixels that make up an image. ## Composing Filters Color Filters and Shaders and also be used as Image filters. In the example below, we first apply a color ...
6,480
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/image-filters/runtime-shader.md
--- id: runtime-shader title: Runtime Shader sidebar_label: Runtime Shader slug: /image-filters/runtime-shader --- The `RuntimeShader` image filter allows you to write your own [Skia Shader](/docs/shaders/overview) as an image filter. This component receives the currently filtered image as a shader uniform (or the imp...
6,481
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/image-filters/shadows.md
--- id: shadows title: Shadows sidebar_label: Shadows slug: /image-filters/shadows --- The `DropShadow` image filter is equivalent to its [SVG counterpart](https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/drop-shadow()). It creates a filter that draws a drop shadow under the input content. A `shadowOnl...
6,482
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/paint/overview.md
--- id: overview title: Painting sidebar_label: Overview slug: /paint/overview --- Anytime you draw something in Skia, you want to specify what color it is, how it blends with the background, or what style to draw it in. We call these painting attributes. And in React Native Skia, these attributes can be specified as ...
6,483
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/paint/properties.md
--- id: properties title: Painting Properties sidebar_label: Properties slug: /paint/properties --- Below are the properties of a Paint component. The following children can also be assigned to a Paint: * [Shaders](/docs/shaders/overview) * [Image Filters](/docs/image-filters/overview) * [Color Filters](/docs/color-fi...
6,484
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shaders/colors.md
--- id: colors title: Blending and Colors sidebar_label: Blending and Colors slug: /shaders/colors --- ## Blend Shader Returns a shader that combines the given shaders with a BlendMode. | Name | Type | Description | |:------------|:---------------|:-------------------------------...
6,485
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shaders/gradients.md
--- id: gradients title: Gradients sidebar_label: Gradients slug: /shaders/gradients --- ## Common Properties Below are the properties common to all gradient components. | Name | Type | Description | |:-----------|:---------------|:--------------------------------| | colors | ...
6,486
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shaders/images.md
--- id: images title: Image Shaders sidebar_label: Images slug: /shaders/images --- ## Image Returns an image as a shader with the specified tiling. It will use cubic sampling. | Name | Type | Description | |:-----------|:---------------|:-----------------------------------| | ...
6,487
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shaders/language.md
--- id: language title: Shading Language sidebar_label: Language slug: /shaders/overview --- Skia provides a shading language. You can play with it [here](https://shaders.skia.org/). The syntax is very similar to GLSL. The first step is to create a shader and compile it using `RuntimeEffect.Make`. ```tsx twoslash im...
6,488
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shaders/perlin-noise.md
--- id: perlin-noise title: Perlin Noise Shaders sidebar_label: Perlin Noise slug: /shaders/perlin-noise --- ## Fractal Perlin Noise Shader Returns a shader with Perlin Fractal Noise. | Name | Type | Description | |:------------|:---------------|:--------------------------------...
6,489
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shapes/box.md
--- id: box title: Box sidebar_label: Box slug: /shapes/box --- import useBaseUrl from '@docusaurus/useBaseUrl'; In React Native Skia, a box is a rectangle or a rounded rectangle. Currently it can be used to provide a fast inner shadow primitive. It may have some other features in the future. | Name | Type ...
6,490
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shapes/custom-drawing.md
--- id: custom-drawing title: Custom Drawing sidebar_label: Custom Drawing slug: /shapes/custom-drawing --- The `Drawing` component that allows you to use the imperative API within the declarative API. :::info Please note that because this component relies on the JavaScript thread to be available, this component is ...
6,491
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shapes/ellipses.md
--- id: ellipses title: Ellipses sidebar_label: Ellipses slug: /shapes/ellipses --- ## Circle Draws a circle. | Name | Type | Description | |:-----|:---------|:-----------------| | cx | `number` | Start point. | | cy | `number` | End point. | | r | `number` | Radius. | ```tsx twos...
6,492
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shapes/patch.md
--- id: patch title: Patch sidebar_label: Patch slug: /shapes/patch --- Draws a [Coons patch](https://en.wikipedia.org/wiki/Coons_patch). | Name | Type | Description | |:----------|:----------|:--------------------------------------------------------------| ...
6,493
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shapes/path.md
--- id: path title: Path sidebar_label: Path slug: /shapes/path --- In Skia, paths are semantically identical to [SVG Paths](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths). | Name | Type | Description | |:----------|:----------|:-----------...
6,494
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shapes/pictures.md
--- id: pictures title: Pictures sidebar_label: Pictures slug: /shapes/pictures --- A Picture renders a previously recorded list of drawing operations on the canvas. The picture is immutable and cannot be edited or changed after it has been created. It can be used multiple times in any canvas. | Name | Type ...
6,495
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shapes/polygons.md
--- id: polygons title: Polygons sidebar_label: Polygons slug: /shapes/polygons --- ## Rect Draws a rectangle. | Name | Type | Description | | :----- | :------- | :----------------------- | | x | `number` | X coordinate. | | y | `number` | Y coordinate. | | width |...
6,496
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/shapes/vertices.md
--- id: vertices title: Vertices sidebar_label: Vertices slug: /shapes/vertices --- Draws vertices. | Name | Type | Description | | :--------- | :----------- | :----------------------- | | vertices | `Point[]` | Vertices to draw | | mode? | `VertexMode` | Can be `triangles`, `tria...
6,497
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/text/blob.md
--- id: blob title: Text Blob sidebar_label: Text Blob slug: /text/blob --- A text blob contains glyphs, positions, and paint attributes specific to the text. | Name | Type | Description | |:------------|:-----------|:--------------------------------------...
6,498
0
petrpan-code/Shopify/react-native-skia/docs/docs
petrpan-code/Shopify/react-native-skia/docs/docs/text/fonts.md
--- id: fonts title: Fonts sidebar_label: Fonts slug: /text/fonts --- In Skia, the `FontMgr` object manages a collection of font families. It allows you to access fonts from the system and manage custom fonts. The `matchFont()` function will always return a font. And the font property in `<Text />` is optional. So a...
6,499