Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Dec 4, 2023
1 parent c40e142 commit 12f3e8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
10 changes: 5 additions & 5 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
import Advanced from './advanced';
import Basic from './basic';
import Client from './components/Client';
// import { ConfigHeader } from './config/ConfigHeader';
import { ConfigHeader } from './config/ConfigHeader';
const RootStack = createStackNavigator<any>();
const DATA = [Basic, Advanced];

Expand Down Expand Up @@ -81,10 +81,10 @@ export default function App() {
const AppSectionList = SectionList<any>;

const Home = ({ navigation }: StackScreenProps<any>) => {
// useEffect(() => {
// const headerRight = () => <ConfigHeader />;
// navigation.setOptions({ headerRight });
// }, [navigation]);
useEffect(() => {
const headerRight = () => <ConfigHeader />;
navigation.setOptions({ headerRight });
}, [navigation]);

return (
<AppSectionList
Expand Down
12 changes: 3 additions & 9 deletions example/src/config/agora.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import {
RTM_AREA_CODE,
RTM_ENCRYPTION_MODE,
RTM_PROXY_TYPE,
} from 'agora-react-native-rtm';

let env: any = '';
let localAppId = '';
try {
Expand All @@ -22,11 +16,11 @@ const config = {
logFilePath: '',
server: '',
port: 0,
proxyType: RTM_PROXY_TYPE.RTM_PROXY_TYPE_NONE,
proxyType: 0,
account: 'ds',
password: 'ssds',
areaCode: RTM_AREA_CODE.RTM_AREA_CODE_GLOB,
encryptionMode: RTM_ENCRYPTION_MODE.RTM_ENCRYPTION_MODE_NONE,
areaCode: 4294967295,
encryptionMode: 0,
encryptionKey: '',
encryptionSalt: new Array(32).fill(1, 0, 32),
};
Expand Down

0 comments on commit 12f3e8c

Please sign in to comment.