Compare commits

...
4 Commits
Author SHA1 Message Date
luancurti 2af035f885 Remove redundant TS parser and plugin (#150) 2020-11-05 10:26:43 +01:00
Khalis Afkari 5f0d33c8d5 sync latest rn (#165)
* sync latest rn
2020-10-06 11:21:37 +02:00
Emin Khateeb 7332696210 synced with latest rn template (#162) 2020-09-10 11:03:26 +02:00
Diego Mais 8147ca7a83 style: sort devDependencies in package.json (#161) 2020-09-09 19:31:30 +02:00
9 changed files with 30 additions and 36 deletions

No files matched your search

+2 -2
View File
@@ -46,8 +46,8 @@ const App = () => {
<View style={styles.sectionContainer}> <View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Step One</Text> <Text style={styles.sectionTitle}>Step One</Text>
<Text style={styles.sectionDescription}> <Text style={styles.sectionDescription}>
Edit <Text style={styles.highlight}>App.tsx</Text> to change Edit <Text style={styles.highlight}>App.tsx</Text> to change this
this screen and then come back to see your edits. screen and then come back to see your edits.
</Text> </Text>
</View> </View>
<View style={styles.sectionContainer}> <View style={styles.sectionContainer}>
-2
View File
@@ -1,6 +1,4 @@
module.exports = { module.exports = {
root: true, root: true,
extends: '@react-native-community', extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
}; };
+1 -1
View File
@@ -25,4 +25,4 @@ android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
# Version of flipper SDK to use with React Native # Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.37.0 FLIPPER_VERSION=0.54.0
+1 -1
View File
@@ -7,7 +7,7 @@
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string> <string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key> <key>CFBundleName</key>
+14 -24
View File
@@ -7,44 +7,36 @@
#ifdef FB_SONARKIT_ENABLED #ifdef FB_SONARKIT_ENABLED
#import <FlipperKit/FlipperClient.h> #import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h> #import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h> #import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h> #import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
static void InitializeFlipper(UIApplication *application) { static void InitializeFlipper(UIApplication *application) {
FlipperClient *client = [FlipperClient sharedClient]; FlipperClient *client = [FlipperClient sharedClient];
SKDescriptorMapper *layoutDescriptorMapper = SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
[[SKDescriptorMapper alloc] initWithDefaults]; [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
[client addPlugin:[[FlipperKitLayoutPlugin alloc]
initWithRootNode:application
withDescriptorMapper:layoutDescriptorMapper]];
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
[client addPlugin:[FlipperKitReactPlugin new]]; [client addPlugin:[FlipperKitReactPlugin new]];
[client addPlugin:[[FlipperKitNetworkPlugin alloc] [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
[client start]; [client start];
} }
#endif #endif
@implementation AppDelegate @implementation AppDelegate
- (BOOL)application:(UIApplication *)application - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { {
#ifdef FB_SONARKIT_ENABLED #ifdef FB_SONARKIT_ENABLED
InitializeFlipper(application); InitializeFlipper(application);
#endif #endif
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"HelloWorld" moduleName:@"HelloWorld"
initialProperties:nil]; initialProperties:nil];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
green:1.0f
blue:1.0f
alpha:1];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [UIViewController new]; UIViewController *rootViewController = [UIViewController new];
@@ -54,14 +46,12 @@ static void InitializeFlipper(UIApplication *application) {
return YES; return YES;
} }
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
#ifdef FB_SONARKIT_ENABLED {
return #if DEBUG
[[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
fallbackResource:nil];
#else #else
return [[NSBundle mainBundle] URLForResource:@"main" return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
withExtension:@"jsbundle"];
#endif #endif
} }
@@ -35,4 +35,4 @@
"version" : 1, "version" : 1,
"author" : "xcode" "author" : "xcode"
} }
} }
@@ -55,4 +55,4 @@
<point key="canvasLocation" x="52.173913043478265" y="375"/> <point key="canvasLocation" x="52.173913043478265" y="375"/>
</scene> </scene>
</scenes> </scenes>
</document> </document>
+9
View File
@@ -22,3 +22,12 @@ target 'HelloWorld' do
flipper_post_install(installer) flipper_post_install(installer)
end end
end end
target 'HelloWorld-tvOS' do
# Pods for HelloWorld-tvOS
target 'HelloWorld-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
+1 -4
View File
@@ -11,7 +11,7 @@
}, },
"dependencies": { "dependencies": {
"react": "16.13.1", "react": "16.13.1",
"react-native": "0.63.2" "react-native": "0.63.3"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.8.4", "@babel/core": "^7.8.4",
@@ -20,14 +20,11 @@
"@types/jest": "^25.2.3", "@types/jest": "^25.2.3",
"@types/react-native": "^0.63.2", "@types/react-native": "^0.63.2",
"@types/react-test-renderer": "^16.9.2", "@types/react-test-renderer": "^16.9.2",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"babel-jest": "^25.1.0", "babel-jest": "^25.1.0",
"eslint": "^6.5.1", "eslint": "^6.5.1",
"jest": "^25.1.0", "jest": "^25.1.0",
"metro-react-native-babel-preset": "^0.59.0", "metro-react-native-babel-preset": "^0.59.0",
"react-test-renderer": "16.13.1", "react-test-renderer": "16.13.1",
"prettier": "^2.0.4",
"typescript": "^3.8.3" "typescript": "^3.8.3"
}, },
"jest": { "jest": {