Skip to content

Commit

Permalink
[Chore] SVG 파일 사용 환경 구축
Browse files Browse the repository at this point in the history
  • Loading branch information
SEEWON committed Jan 12, 2022
1 parent 462efa1 commit 2fe91ba
Show file tree
Hide file tree
Showing 6 changed files with 477 additions and 4 deletions.
18 changes: 15 additions & 3 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');
const { getDefaultConfig } = require('metro-config');

module.exports = getDefaultConfig(__dirname);
module.exports = (async () => {
const {
resolver: { sourceExts, assetExts },
} = await getDefaultConfig();
return {
transformer: {
babelTransformerPath: require.resolve('react-native-svg-transformer'),
},
resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
},
};
})();
2 changes: 1 addition & 1 deletion navigation/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Root = () => {
const dispatch = useDispatch();
const authData = useSelector((state) => state.auth);
//개발 완료되고 기본값 false로 변경하기!
const [isLoggedIn, setIsLoggedIn] = useState(true);
const [isLoggedIn, setIsLoggedIn] = useState(false);
const [loading, setLoading] = useState(true);

//이미 토큰이 리덕스에 저장된 경우(직접 카카오로그인)
Expand Down
Loading

0 comments on commit 2fe91ba

Please sign in to comment.