Skip to content

Commit

Permalink
feat(rn): react native 탭 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbae0 committed Mar 31, 2024
1 parent f706eb2 commit 2a824ce
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/react_native/error_log/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Error Log",
"position": 2,
"link": {
"type": "generated-index",
"description": "React Native 앱 개발시 발생한 에러를 정리합니다."
}
}
31 changes: 31 additions & 0 deletions docs/react_native/error_log/rn_reanimated.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Cannot read property 'makeMutable' of undefined

## 문제상황

- Cannot read property 'makeMutable' of undefined 에러가 발생

## 해결

- `babel.config.js``react-native-reanimated/plugin`을 가장 아래에 지정하지 않아서 발생하는 문제

```js
module.exports = {
presets: [
... // don't add it here :)
],
plugins: [
...
// highlight-next-line
'react-native-reanimated/plugin',
],
};
```

:::caution
react-native-reanimated/plugin has to be listed last.
:::

## 참고문서

- https://github.com/software-mansion/react-native-reanimated/discussions/5511
- https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/#step-2-add-reanimateds-babel-plugin
7 changes: 7 additions & 0 deletions docs/react_native/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 1
---

# React Native Intro

React Native 관련 내용을 정리합니다.
6 changes: 6 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ const config: Config = {
position: "left",
label: "FE Advances",
},
{
type: "docSidebar",
sidebarId: "rnSidebar",
position: "left",
label: "RN",
},
{
type: "docSidebar",
sidebarId: "beSidebar",
Expand Down
3 changes: 2 additions & 1 deletion sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
feBasicsSidebar: [{ type: "autogenerated", dirName: "basics" }],
feAdvancesSidebar: [{ type: "autogenerated", dirName: "advances" }],
csSidebar: [{ type: "autogenerated", dirName: "cs" }],
rnSidebar: [{ type: "autogenerated", dirName: "react_native" }],
beSidebar: [{ type: "autogenerated", dirName: "backend" }],
csSidebar: [{ type: "autogenerated", dirName: "cs" }],
booksSidebar: [{ type: "autogenerated", dirName: "books" }],
etcSidebar: [{ type: "autogenerated", dirName: "etc" }],

Expand Down

0 comments on commit 2a824ce

Please sign in to comment.