react-native-true-sheet/scripts/objclint.sh
Jovanni Lo 248b64de25
feat: move Fabric state wrapper to host view (#230)
* feat: move state wrapper from container view to host view

* fix(ios): call updateStateIfNeeded on every state update

* fix(ios): handle device rotation and only track width changes

* feat(android): align state update flow with iOS

* chore: improve clean script with colors
2025-11-26 03:32:22 +08:00

13 lines
361 B
Bash
Executable File

#!/bin/bash
# Format Objective-C code using clang-format
# For static analysis, consider using OCLint: brew install oclint
if which clang-format >/dev/null; then
find ios -name "*.h" -o -name "*.mm" | while read file; do
clang-format -i "$file"
done
else
echo "error: clang-format not installed, install with 'brew install clang-format'"
exit 1
fi