Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ const ViewPage: React.FC = () => {
{/* アニメーション付き紫ネオン星エフェクト - 写真エリアを避けて配置 */}
{starConfigs.map((config, index) => (
<Animated.View
//biome-ignore lint/suspicious/noArrayindex: <unknown id>
//biome-ignore lint/suspicious/noArrayindex: <unknown id>
key={`star-${index}`}
style={[
styles.neonStar,
Expand Down
52 changes: 28 additions & 24 deletions components/NeonCamera.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function NeonCamera() {
const [pulseAnim] = useState(() => new Animated.Value(1));
const [strobeOpacity] = useState(() => new Animated.Value(0));
const [glowAnim] = useState(() => new Animated.Value(0));

// フレーム回転用のアニメーション値
const [outerRotation] = useState(() => new Animated.Value(0));
const [innerRotation] = useState(() => new Animated.Value(0));
Expand Down Expand Up @@ -208,7 +208,14 @@ export default function NeonCamera() {
return () => {
starAnimation.stop();
};
}, [pulseAnim, glowAnim, outerRotation, innerRotation, sparkleAnimValues, floatAnimValues]);
}, [
pulseAnim,
glowAnim,
outerRotation,
innerRotation,
sparkleAnimValues,
floatAnimValues,
]);

// ストロボエフェクト
useEffect(() => {
Expand Down Expand Up @@ -327,10 +334,7 @@ export default function NeonCamera() {
<Text style={styles.permissionText}>
カメラへのアクセス許可が必要です
</Text>
<TouchableOpacity
style={styles.neonButton}
onPress={requestPermission}
>
<TouchableOpacity style={styles.neonButton} onPress={requestPermission}>
<View style={styles.neonButtonInner}>
<Text style={styles.neonButtonText}>許可する</Text>
</View>
Expand Down Expand Up @@ -510,14 +514,14 @@ export default function NeonCamera() {
{
rotate: outerRotation.interpolate({
inputRange: [0, 1],
outputRange: ['0deg', '360deg'],
outputRange: ["0deg", "360deg"],
}),
},
],
},
]}
/>

{/* 内の円(左回り5秒) */}
<Animated.View
style={[
Expand All @@ -530,7 +534,7 @@ export default function NeonCamera() {
{
rotate: innerRotation.interpolate({
inputRange: [0, 1],
outputRange: ['0deg', '-360deg'], // 左回り
outputRange: ["0deg", "-360deg"], // 左回り
}),
},
],
Expand All @@ -551,7 +555,7 @@ export default function NeonCamera() {
<Text style={styles.flipButtonText}>🔄</Text>
</View>
</TouchableOpacity>

<TouchableOpacity
style={styles.hiddenDebugStar}
onPress={() => router.push("/debug")}
Expand Down Expand Up @@ -631,15 +635,15 @@ const styles = StyleSheet.create({
},
neonFrame: {
position: "absolute",
justifyContent: 'center',
alignItems: 'center',
justifyContent: "center",
alignItems: "center",
},
outerCircle: {
position: 'absolute',
position: "absolute",
borderWidth: 3,
borderColor: '#ff00ff',
borderStyle: 'dashed',
backgroundColor: 'transparent',
borderColor: "#ff00ff",
borderStyle: "dashed",
backgroundColor: "transparent",
shadowColor: "#ff00ff",
shadowOffset: {
width: 0,
Expand All @@ -650,11 +654,11 @@ const styles = StyleSheet.create({
elevation: 10,
},
innerCircle: {
position: 'absolute',
position: "absolute",
borderWidth: 2,
borderColor: '#00ffff',
borderStyle: 'dashed',
backgroundColor: 'transparent',
borderColor: "#00ffff",
borderStyle: "dashed",
backgroundColor: "transparent",
shadowColor: "#00ffff",
shadowOffset: {
width: 0,
Expand Down Expand Up @@ -742,8 +746,8 @@ const styles = StyleSheet.create({
elevation: 10,
width: 50,
height: 50,
alignItems: 'center',
justifyContent: 'center',
alignItems: "center",
justifyContent: "center",
},
neonButtonInner: {
backgroundColor: "#000",
Expand Down Expand Up @@ -783,8 +787,8 @@ const styles = StyleSheet.create({
hiddenDebugStar: {
width: 24,
height: 24,
alignItems: 'center',
justifyContent: 'center',
alignItems: "center",
justifyContent: "center",
},
debugStarShape: {
width: 20,
Expand Down
Loading