Skip to content

Commit

Permalink
feat: 优化导入视频速度
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxuhai committed Apr 1, 2022
1 parent 460e518 commit 445905f
Show file tree
Hide file tree
Showing 111 changed files with 2,665 additions and 2,942 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
'react-hooks/exhaustive-deps': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
overrides: [
{
Expand Down
13 changes: 13 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
import 'react-native-gesture-handler';
import 'react-native-get-random-values';
import 'intl-pluralrules';
import { Navigation } from 'react-native-navigation';

import { start } from './src/app';
import analytics from '@/utils/analytics/firebase';

Navigation.events().registerAppLaunchedListener(start);

Navigation.events().registerComponentDidAppearListener(
({ componentName, componentType }) => {
if (componentType === 'Component' && analytics?.logScreenView) {
analytics.logScreenView({
screen_name: componentName,
screen_class: componentName,
});
}
},
);
7 changes: 3 additions & 4 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require File.join(File.dirname(`node --print "require.resolve('expo/package.json
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '13.0'
platform :ios, '14.0'

# 避免使用 IDFA
$RNFirebaseAnalyticsWithoutAdIdSupport = true
Expand All @@ -27,7 +27,8 @@ target 'PrivateSpace' do
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
:hermes_enabled => false,
:fabric_enabled => false,
)

target 'PrivateSpaceTests' do
Expand All @@ -53,8 +54,6 @@ target 'PrivateSpace' do
end

target 'ShareExtension' do
# use_expo_modules!
# config = use_native_modules!
use_react_native!

pod 'RNShareMenu', :path => '../node_modules/react-native-share-menu'
Expand Down
Loading

0 comments on commit 445905f

Please sign in to comment.