You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-26Lines changed: 3 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,9 @@ The [example app](/example/) demonstrates usage of the library. You need to run
23
23
24
24
It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.
25
25
26
-
If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/OrientationDirectorExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-orientation-director`.
26
+
If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/TestLibraryExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-test-library`.
27
27
28
-
To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `react-native-orientation-director` under `Android`.
28
+
To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `react-native-test-library` under `Android`.
29
29
30
30
You can use various commands from the root directory to work with the project.
31
31
@@ -47,33 +47,10 @@ To run the example app on iOS:
47
47
yarn example ios
48
48
```
49
49
50
-
By default, the example is configured to build with the old architecture. To run the example with the new architecture, you can do the following:
51
-
52
-
1. For Android, run:
53
-
54
-
```sh
55
-
ORG_GRADLE_PROJECT_newArchEnabled=true yarn example android
56
-
```
57
-
58
-
2. For iOS, run:
59
-
60
-
```sh
61
-
cd example/ios
62
-
RCT_NEW_ARCH_ENABLED=1 pod install
63
-
cd -
64
-
yarn example ios
65
-
```
66
-
67
-
If you are building for a different architecture than your previous build, make sure to remove the build folders first. You can run the following command to cleanup all build folders:
68
-
69
-
```sh
70
-
yarn clean
71
-
```
72
-
73
50
To confirm that the app is running with the new architecture, you can check the Metro logs for a message like this:
74
51
75
52
```sh
76
-
Running "OrientationDirectorExample" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":1}
53
+
Running "TestLibraryExample" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":1}
77
54
```
78
55
79
56
Note the `"fabric":true` and `"concurrentRoot":true` properties.
0 commit comments