Skip to content

Commit

Permalink
chore: rename enum renderer strings
Browse files Browse the repository at this point in the history
  • Loading branch information
HayesGordon committed Jun 3, 2024
1 parent 49a9a9b commit ac198a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package com.rivereactnative
import app.rive.runtime.kotlin.core.RendererType

enum class RNRiveRendererType(private val rendererTypeName: String) {
Rive("riveRenderer"),
Skia("skiaRenderer"),
Canvas("canvasRenderer");
Rive("rive"),
Skia("skia"),
Canvas("canvas");

override fun toString(): String {
return rendererTypeName
Expand Down
6 changes: 3 additions & 3 deletions ios/RNRiveRendererType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import Foundation
import RiveRuntime

enum RNRiveRendererType: String {
case Rive = "riveRenderer"
case Skia = "skiaRenderer"
case CoreGraphics = "cgRenderer"
case Rive = "rive"
case Skia = "skia"
case CoreGraphics = "coreGraphics"

static func mapToRNRiveRendererType(value: String) -> RNRiveRendererType {
if let rnEnum = RNRiveRendererType(rawValue: value) {
Expand Down
12 changes: 6 additions & 6 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ export enum Direction {
}

export enum RiveRendererIOS {
Rive = 'riveRenderer',
Skia = 'skiaRenderer',
CoreGraphics = 'cgRenderer',
Rive = 'rive',
Skia = 'skia',
CoreGraphics = 'coreGraphics',
}

export enum RiveRendererAndroid {
Rive = 'riveRenderer',
Skia = 'skiaRenderer',
Canvas = 'canvasRenderer',
Rive = 'rive',
Skia = 'skia',
Canvas = 'canvas',
}

export enum RNRiveErrorType {
Expand Down

0 comments on commit ac198a5

Please sign in to comment.