@umituz/react-native-photo-editor 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-photo-editor",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "A powerful, generic photo editor for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -82,7 +82,7 @@ export const EditorToolbar: React.FC<EditorToolbarProps> = ({
82
82
  {onUndo && (
83
83
  <ToolButton
84
84
  icon="arrow-back"
85
- label={t("editor.undo") || "Undo"}
85
+ label={t("photo_editor.undo") || "Undo"}
86
86
  onPress={onUndo}
87
87
  disabled={!canUndo}
88
88
  parentStyles={parentStyles}
@@ -91,7 +91,7 @@ export const EditorToolbar: React.FC<EditorToolbarProps> = ({
91
91
 
92
92
  <ToolButton
93
93
  icon="edit"
94
- label={t("editor.text") || "Text"}
94
+ label={t("photo_editor.text") || "Text"}
95
95
  onPress={onAddText}
96
96
  parentStyles={parentStyles}
97
97
  />
@@ -99,7 +99,7 @@ export const EditorToolbar: React.FC<EditorToolbarProps> = ({
99
99
  {onAddSticker && (
100
100
  <ToolButton
101
101
  icon="sparkles"
102
- label={t("editor.sticker") || "Sticker"}
102
+ label={t("photo_editor.sticker") || "Sticker"}
103
103
  onPress={onAddSticker}
104
104
  parentStyles={parentStyles}
105
105
  />
@@ -119,7 +119,7 @@ export const EditorToolbar: React.FC<EditorToolbarProps> = ({
119
119
  {onOpenAdjustments && (
120
120
  <ToolButton
121
121
  icon="flash"
122
- label={t("editor.adjust") || "Adjust"}
122
+ label={t("photo_editor.adjust") || "Adjust"}
123
123
  onPress={onOpenAdjustments}
124
124
  parentStyles={parentStyles}
125
125
  />
@@ -128,7 +128,7 @@ export const EditorToolbar: React.FC<EditorToolbarProps> = ({
128
128
  {onOpenFilters && (
129
129
  <ToolButton
130
130
  icon="brush"
131
- label={t("editor.filters") || "Filters"}
131
+ label={t("photo_editor.filters") || "Filters"}
132
132
  onPress={onOpenFilters}
133
133
  parentStyles={parentStyles}
134
134
  />
@@ -136,7 +136,7 @@ export const EditorToolbar: React.FC<EditorToolbarProps> = ({
136
136
 
137
137
  <ToolButton
138
138
  icon="copy"
139
- label={t("editor.layers") || "Layers"}
139
+ label={t("photo_editor.layers") || "Layers"}
140
140
  onPress={onOpenLayers}
141
141
  parentStyles={parentStyles}
142
142
  />
@@ -144,7 +144,7 @@ export const EditorToolbar: React.FC<EditorToolbarProps> = ({
144
144
  {onRedo && (
145
145
  <ToolButton
146
146
  icon="chevron-forward"
147
- label={t("editor.redo") || "Redo"}
147
+ label={t("photo_editor.redo") || "Redo"}
148
148
  onPress={onRedo}
149
149
  disabled={!canRedo}
150
150
  parentStyles={parentStyles}
@@ -73,7 +73,7 @@ export const LayerManager: React.FC<LayerManagerProps> = ({
73
73
  const isActive = activeLayerId === layer.id;
74
74
  const label =
75
75
  layer.type === "text"
76
- ? (layer as TextLayer).text || t("editor.untitled") || "Untitled"
76
+ ? (layer as TextLayer).text || t("photo_editor.untitled") || "Untitled"
77
77
  : "Sticker";
78
78
  const isTop = idx === 0;
79
79
  const isBottom = idx === sortedLayers.length - 1;
@@ -76,12 +76,12 @@ export const TextEditorSheet: React.FC<TextEditorSheetProps> = ({
76
76
 
77
77
  return (
78
78
  <View style={styles.container}>
79
- <AtomicText type="headlineSmall">{t("editor.add_text") || "Edit Text"}</AtomicText>
79
+ <AtomicText type="headlineSmall">{t("photo_editor.add_text") || "Edit Text"}</AtomicText>
80
80
 
81
81
  <TextInput
82
82
  value={value}
83
83
  onChangeText={onChange}
84
- placeholder={t("editor.tap_to_edit") || "Enter text…"}
84
+ placeholder={t("photo_editor.tap_to_edit") || "Enter text…"}
85
85
  placeholderTextColor={tokens.colors.textSecondary}
86
86
  style={styles.input}
87
87
  multiline